If you are trying to autoload classes that are mapping folders to namespaces (I'm assuming that is the case) make sure that your namespaces only include the folder names and omit class names. The use
statement, on the other hand, would not omit the class name.
Using the namespace of test\database\Connector
and then defining a class Connector
means that you would instantiate the object using:
$connecter = new \test\database\Connector\Connector();
I'm guessing you have an additional subnamespace Connector
that isn't needed. Namespace test\database\Connector
should be test\database
.