src/Controller/Component/CrudComponent.php
public function initialize(array $config)
    {
        parent::initialize($config);

        $this->_action = $this->_controller->request->getParam('action');
        $this->_request = $this->_controller->request;

        if (!isset($this->_controller->dispatchComponents)) {
            $this->_controller->dispatchComponents = [];
        }

        $this->_controller->dispatchComponents['Crud'] = true;
    }
public function initialize(array $config)
    {
        parent::initialize($config);

        $this->_action = $this->_controller->request->getParam('action');
        $this->_request = $this->_controller->request;

        if (!isset($this->_controller->dispatchComponents)) {
            $this->_controller->dispatchComponents = [];
        }

        $this->_controller->dispatchComponents['Crud'] = true;
    }
public function initialize ( array $ config ) { parent :: initialize ( $ config ) ; $ this -> _action = $ this -> _controller -> request -> getParam ( 'action' ) ; $ this -> _request = $ this -> _controller -> request ; if ( ! isset ( $ this -> _controller -> dispatchComponents ) ) { $ this -> _controller -> dispatchComponents = [ ] ; } $ this -> _controller -> dispatchComponents [ 'Crud' ] = true ; }
Add self to list of components capable of dispatching an action.

@param array $config Configuration values for component.
@return void
Add self to list of components capable of dispatching an action .