Seems like it's not possible to import namespaces via Nette\PhpGenerator\PhpFile for example:
<?php
use My\Full\Classname as Another, My\Full\NSname;
$obj = new Another; // instantiates object of class My\Full\Classname
NSname\subns\func(); // calls function My\Full\NSname\subns\func
?>
Seems like it's not possible to import namespaces via
Nette\PhpGenerator\PhpFile
for example:http://php.net/manual/en/language.namespaces.importing.php
Currently it's only possible via PhpNamespace class