cphalcon
cphalcon copied to clipboard
[2.0] \Phalcon\Mvc\ModuleDefinitionInterface implements problem
I want create multi-modules app. I have:
class Module implements \Phalcon\Mvc\ModuleDefinitionInterface
in 1.3.4 for properly operation my methods are:
public function registerAutoloaders($di) {} // where $di can be 'NULL'
public function registerServices($di) {}
In 2.0.0 for properly operation I need do some changes:
public function registerAutoloaders(\Phalcon\DiInterface $di = NULL) {}
public function registerServices(\Phalcon\DiInterface $di) {}
It is expected and correct?
Yes, it's the expected, now parameters expect interfaces compliance
Suggest to patch it on Phalcon 1.3.5 or 1.4.0
Thank you for your help:)
Thanks!
@andresgutierrez
Suggest to patch it on Phalcon 1.4.0 for BC