src/Auth/SimpleRbacAuthorize.php
public function getControllerNameAndAction(Request $request) {
		$controller = $this->_registry->getController();
		$name = $controller->name;
		$action = $request->action;

		if (!empty($request->params['plugin'])) {
			$name = Inflector::camelize($request->params['plugin']) . '.' . $name;
		}
		return compact('name', 'action');
	}
public function getControllerNameAndAction(Request $request) {
		$controller = $this->_registry->getController();
		$name = $controller->name;
		$action = $request->action;

		if (!empty($request->params['plugin'])) {
			$name = Inflector::camelize($request->params['plugin']) . '.' . $name;
		}
		return compact('name', 'action');
	}
public function getControllerNameAndAction ( Request $ request ) { $ controller = $ this -> _registry -> getController ( ) ; $ name = $ controller -> name ; $ action = $ request -> action ; if ( ! empty ( $ request -> params [ 'plugin' ] ) ) { $ name = Inflector :: camelize ( $ request -> params [ 'plugin' ] ) . '.' . $ name ; } return compact ( 'name' , 'action' ) ; }
Gets the controller and action, prefixes the controller with the plugin if there is one

@param Request $request
@return array
Gets the controller and action prefixes the controller with the plugin if there is one