Getting PHP namespace from VirtualDirectory

Answered

Hey,

I want to create my own New ->  XXX action. I want to prefill the namespace like the Create New PHP Class. But how can I get the namespace for a directory?

 

1 comment
Comment actions Permalink

com.jetbrains.php.roots.PhpNamespaceByFilesProvider#INSTANCE -> suggestNamespaces(PsiDirectory)

1

Please sign in to leave a comment.