We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Multiple - service - layer - the normal operation of the model, and found a BUG

Fatal error: Declaration of Modules\Modules\Frontend\Module::registerAutoloaders() must be compatible with Phalcon\Mvc\ModuleDefinitionInterface::registerAutoloaders(Phalcon\DiInterface $dependencyInjector = NULL) in /Volumes/develop/PHP/apps/modules/frontend/Module.php on line 11

I've run straight from the https://github.com/phalcon/mvc/tree/master/multiple-service-layer-model checkout code, an error



85.5k
edited Nov '15

https://github.com/phalcon/mvc/blob/master/multiple-service-layer-model/apps/modules/frontend/Module.php#L14

change it to :

public function registerAutoloaders(\Phalcon\DiInterface $di = NULL) 


1.8k

I added, but there is also a problem



85.5k

the same problem ?