cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[2.0] \Phalcon\Mvc\ModuleDefinitionInterface implements problem

Open Riu opened this issue 11 years ago • 5 comments

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?

Riu avatar Apr 08 '15 05:04 Riu

Yes, it's the expected, now parameters expect interfaces compliance

andresgutierrez avatar Apr 08 '15 05:04 andresgutierrez

Suggest to patch it on Phalcon 1.3.5 or 1.4.0

ovr avatar Apr 08 '15 07:04 ovr

Thank you for your help:)

Riu avatar Apr 08 '15 07:04 Riu

Thanks!

borisdelev avatar Apr 10 '15 09:04 borisdelev

@andresgutierrez

Suggest to patch it on Phalcon 1.4.0 for BC

ovr avatar Apr 10 '15 11:04 ovr