Skip to content

Missing support for importing namespaces in PhpFile #38

@Nazariy

Description

@Nazariy

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
?>

http://php.net/manual/en/language.namespaces.importing.php

Currently it's only possible via PhpNamespace class

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions