Attach the aggregate to the specified event manager
Parameters: | EventManagerInterface – |
---|---|
Return type: | void |
Set value indicating whether or not to display exceptions related to a not-found condition
Parameters: | bool – |
---|---|
Return type: | RouteNotFoundStrategy |
Should we display exceptions related to a not-found condition?
Return type: | bool |
---|
Detach aggregate listeners from the specified event manager
Parameters: | EventManagerInterface – |
---|---|
Return type: | void |
Set value indicating whether or not to display the reason for a not-found condition
Parameters: | bool – |
---|---|
Return type: | RouteNotFoundStrategy |
Should we display the reason for a not-found condition?
Return type: | bool |
---|
Get template for not found conditions
Parameters: | string – |
---|---|
Return type: | RouteNotFoundStrategy |
Get template for not found conditions
Return type: | string |
---|
Detect if an error is a 404 condition
If a “controller not found” or “invalid controller” error type is encountered, sets the response status code to 404.
Parameters: | MvcEvent – |
---|---|
Return type: | void |
Create and return a 404 view model
Parameters: | MvcEvent – |
---|---|
Return type: | void |
Inject the not-found reason into the model
If $displayNotFoundReason is enabled, checks to see if $reason is set, and, if so, injects it into the model. If not, it injects Application::ERROR_CONTROLLER_CANNOT_DISPATCH.
Parameters: | ViewModel – |
---|---|
Return type: | void |
Inject the exception message into the model
If $displayExceptions is enabled, and an exception is found in the event, inject it into the model.
Parameters: |
|
---|---|
Return type: | void |
Inject the controller and controller class into the model
If either $displayExceptions or $displayNotFoundReason are enabled, injects the controllerClass from the MvcEvent. It checks to see if a controller is present in the MvcEvent, and, if not, grabs it from the route match if present; if a controller is found, it injects it into the model.
Parameters: |
|
---|---|
Return type: | void |