You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like it's not possible to import namespaces via Nette\PhpGenerator\PhpFile for example:
<?phpuseMy\Full\ClassnameasAnother, My\Full\NSname;
$obj = newAnother; // instantiates object of class My\Full\ClassnameNSname\subns\func(); // calls function My\Full\NSname\subns\func?>
Seems like it's not possible to import namespaces via
Nette\PhpGenerator\PhpFilefor example:http://php.net/manual/en/language.namespaces.importing.php
Currently it's only possible via PhpNamespace class