Hey guys, take the following structure as an example:
both classes are using the namespace MyApp.
$user = new \MyApp\Users(); $auth = new \MyApp\Auth();
I tried setting up the loader as follows but it doesn't work. It seems the last one overrides the first one:
$loader = new \Phalcon\Loader(); $loader->registerNamespaces( [ 'MyApp' => MODELS_PATH, #this will be ignored 'MyApp' => LIBRARY_PATH.'/MyApp/' ] )->register();
Shouldn't this be possible based on PSR-4?