DefaultActionMapper.php
96 self::$_logger->error("Authorization failed for '".$referrer.'?'.$context.'?'.$action."' user '".$login."'");
119 throw new ApplicationException($request, $response, "No controller found for best action key ".$actionKey.". Request was $referrer?$context?$action");
static getClassInstance($class, $dynamicConfiguration=array())
Definition: ObjectFactory.php:47
static getBestMatch(ActionKeyProvider $actionKeyProvider, $resource, $context, $action)
Get an action key that matches a given combination of resource, context, action best.
Definition: ActionKey.php:55
Default ActionMapper implementation.
Definition: DefaultActionMapper.php:34
EventManager is responsible for dispatching events to registered listeners.
Definition: EventManager.php:21
const BEFORE_INITIALIZE_CONTROLLER
A BEFORE_INITIALIZE_CONTROLLER event occurs before the current controller is initialized.
Definition: ApplicationEvent.php:44
processAction(Request $request)
Definition: DefaultActionMapper.php:72
const AFTER_EXECUTE_CONTROLLER
A AFTER_EXECUTE_CONTROLLER event occurs after the current controller is executed. ...
Definition: ApplicationEvent.php:56
static getInstance($name, $dynamicConfiguration=array())
Definition: ObjectFactory.php:39
Formatter is the single entry point for request/response formatting.
Definition: Formatter.php:23
Session is the interface for session implementations and defines access to session variables...
Definition: Session.php:21
Request holds the request values that are used as input to Controller instances.
Definition: Request.php:20
const BEFORE_EXECUTE_CONTROLLER
A BEFORE_EXECUTE_CONTROLLER event occurs after the current controller is initialized and before it is...
Definition: ApplicationEvent.php:50
const BEFORE_ROUTE_ACTION
A BEFORE_ROUTE_ACTION event occurs before the request is mapped to an action key. ...
Definition: ApplicationEvent.php:38
ApplicationEvent instances are fired at different stages of the program flow.
Definition: ApplicationEvent.php:29
ConfigActionKeyProvider searches for action keys in the application configuration.
Definition: ConfigActionKeyProvider.php:22
PermissionManager implementations are used to handle all authorization requests.
Definition: PermissionManager.php:22
Implementations of Configuration give access to the application configuration.
Definition: Configuration.php:32
ActionMapper implementations are responsible for instantiating and executing Controllers based on the...
Definition: ActionMapper.php:21
static get($code, $data=null)
Factory method for retrieving a predefind error instance.
Definition: ApplicationError.php:120
ApplicationException signals a general application exception.
Definition: ApplicationException.php:22
__construct(Session $session, PermissionManager $permissionManager, EventManager $eventManager, Formatter $formatter, Configuration $configuration)
Constructor.
Definition: DefaultActionMapper.php:54