DefaultActionMapper.php
Session is the interface for session implementations and defines access to session variables.
Definition: Session.php:19
setSender($sender)
Set the name of the sending Controller.
Response holds the response values that are used as output from Controller instances.
Definition: Response.php:20
static getInstanceOf($class, $dynamicConfiguration=[])
Definition: ObjectFactory.php:63
Request holds the request values that are used as input to Controller instances.
Definition: Request.php:18
const AFTER_EXECUTE_CONTROLLER
A AFTER_EXECUTE_CONTROLLER event occurs after the current controller is executed.
Definition: ApplicationEvent.php:56
EventManager is responsible for dispatching events to registered listeners.
Definition: EventManager.php:21
const BEFORE_ROUTE_ACTION
A BEFORE_ROUTE_ACTION event occurs before the request is mapped to an action key.
Definition: ApplicationEvent.php:38
Default ActionMapper implementation.
Definition: DefaultActionMapper.php:35
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
processAction(Request $request, Response $response)
Definition: DefaultActionMapper.php:72
const BEFORE_INITIALIZE_CONTROLLER
A BEFORE_INITIALIZE_CONTROLLER event occurs before the current controller is initialized.
Definition: ApplicationEvent.php:44
Implementations of Configuration give access to the application configuration.
Definition: Configuration.php:32
Formatter is the single entry point for request/response formatting.
Definition: Formatter.php:23
ApplicationError is used to signal errors that occur while processing a request.
Definition: ApplicationError.php:41
static get($code, $data=null)
Factory method for retrieving a predefined error instance.
Definition: ApplicationError.php:144
ApplicationException signals a general application exception.
Definition: ApplicationException.php:22
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
static getNewInstance($name, $dynamicConfiguration=[])
Definition: ObjectFactory.php:55
An action key is a combination of a resource, context and action that is represented as a string.
Definition: ActionKey.php:22
const USER_GROUP_NAME
Definition: AnonymousUser.php:22
const BEFORE_EXECUTE_CONTROLLER
A BEFORE_EXECUTE_CONTROLLER event occurs after the current controller is initialized and before it is...
Definition: ApplicationEvent.php:50
ActionMapper implementations are responsible for instantiating and executing Controllers based on the...
Definition: ActionMapper.php:21
PermissionManager implementations are used to handle all authorization requests.
Definition: PermissionManager.php:20
LogManager is used to retrieve Logger instances.
Definition: LogManager.php:20
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...
Definition: ObjectFactory.php:24
__construct(Session $session, PermissionManager $permissionManager, EventManager $eventManager, Formatter $formatter, Configuration $configuration)
Constructor.
Definition: DefaultActionMapper.php:54