I’m implementing web service in cakephp.
I found a plugin here to do this. When I do the installation steps, any trial to access controller/action.json request I get this error:
Strict (2048): Declaration of RestComponent::initialize()
should be compatible with Component::initialize(Controller $controller)
What does it mean that it should be compatible?
Class methods that override methods of a parent class should implement the same signatures as the methods that are being overwritten, ie the
intializemethod in theRestComponentshould look like this (https://github.com/cakephp/…/Component.php#L109):instead of this (https://github.com/kvz/cakephp-rest-plugin/…RestComponent.php#L153):