I started using namespaces according to: https://olddocs.phalcon.io/en/3.0.0/reference/namespaces.html Next I wrote my own command according to: https://docs.phalcon.io/de/3.2/application-cli
But:
- I had to remove namespaces from my Task classes
-
And like above, that part of code:
$di->set( "dispatcher", function () { $dispatcher = new \Phalcon\Mvc\Dispatcher(); $dispatcher->setDefaultNamespace( "App\\Controller" ); return $dispatcher; } );
Bacause I have an error "Call to undefined method ?::settaskname()
Is a good practise to use namespaces in Phalcon? It looks like makeshift workaround what makes a lot of troubles in future.