Lets say I have a fallowing class:
<?php
namespace \ImTheVendor\Project5;
use \ImTheVendor\Project1\SomeClass,
\ImTheVendor\Project2\SomeOtherClass;
use \ImTheVendor\Project5\SomeClass;
class Something
{
}
How can I get all namespaces declared with use statement? Do I have to regexp the file itself or is there an easier way to do it?
~Thanks
Aucun commentaire:
Enregistrer un commentaire