public function setController(Controller $controller)
    {
        $this->_Controller = $controller;
        $this->setEventManager($controller->getEventManager());
    }
public function setController(Controller $controller)
    {
        $this->_Controller = $controller;
        $this->setEventManager($controller->getEventManager());
    }
public function setController ( Controller $ controller ) { $ this -> _Controller = $ controller ; $ this -> setEventManager ( $ controller -> getEventManager ( ) ) ; }
Set the controller associated with the collection.

@param \Cake\Controller\Controller $controller Controller instance.
@return void
Set the controller associated with the collection .