public function getController()
    {
        if (!isset($this->_controller)) {
            $data = $this->_dispatchedData;
            if (isset($data[1]) && $data[1] instanceof ControllerInterface) {
                $this->_controller = $data[1];
            }
        }
        return $this->_controller;
    }
public function getController()
    {
        if (!isset($this->_controller)) {
            $data = $this->_dispatchedData;
            if (isset($data[1]) && $data[1] instanceof ControllerInterface) {
                $this->_controller = $data[1];
            }
        }
        return $this->_controller;
    }
public function getController ( ) { if ( ! isset ( $ this -> _controller ) ) { $ data = $ this -> _dispatchedData ; if ( isset ( $ data [ 1 ] ) && $ data [ 1 ] instanceof ControllerInterface ) { $ this -> _controller = $ data [ 1 ] ; } } return $ this -> _controller ; }
Get controller if applicable
@return Controller|null
Get controller if applicable