$components
$components : array
Required components
Controller of the Agent to display and manage userroles.
$log : \nre\core\Logger
Logger instance
$linker : \nre\core\Linker
Linker instance
$agent : \nre\core\Agent
Corresponding Agent
$view : \nre\core\View
View of the Controller
$request : \nre\core\Request
Current request
$response : \nre\core\Response
Current response
preFilter(\nre\core\Request $request, \nre\core\Response $response)
Prefilter that is executed before running the Controller.
\nre\core\Request | $request | Current request |
\nre\core\Response | $response | Current response |
postFilter(\nre\core\Request $request, \nre\core\Response $response)
Prefilter that is executed after running the Controller.
\nre\core\Request | $request | Current request |
\nre\core\Response | $response | Current response |
factory(string $controllerName, string $layoutName, string $action, string $agent)
Instantiate a Controller (Factory Pattern).
string | $controllerName | Name of the Controller to instantiate |
string | $layoutName | Name of the current Layout |
string | $action | Current Action |
string | $agent | Corresponding Agent |
run(\nre\core\Request $request, \nre\core\Response $response)
Run the Controller.
This method executes the Action of the Controller defined by the current Request.
\nre\core\Request | $request | Current request |
\nre\core\Response | $response | Current response |
__construct(string $layoutName, string $action, \nre\core\Agent $agent)
Construct a new Controller.
string | $layoutName | Name of the current Layout |
string | $action | Current Action |
\nre\core\Agent | $agent | Corresponding Agent |
getView() : \nre\core\View
Get the View of the Controller
View of the Controller