Свойство | Type | Description | |
---|---|---|---|
$events | Zend\EventManager\EventManagerInterface | Event manager instance | |
$flashMessenger | Zend\Mvc\Controller\Plugin\FlashMessenger | Flash messenger instance | |
$log | Zend\Log\Logger | By default, has no writers attached | |
$namedRoutes | array | Named routes - used to generate URLs | |
$params | null | Zend\Mvc\Router\RouteMatch | Parameters returned as the result of a route match | |
$request | Zend\Http\PhpEnvironment\Request | Request environment | |
$response | Zend\Http\PhpEnvironment\Response | Response environment | |
$routeIndex | null | integer | Index of route that matched | |
$routeListenerRegistered | boolean | Whether or not we've already registered the route listener | |
$routes | Routes | ||
$routesByMethod | array | Array of method => Route[] pairs | |
$view | Phlyty\View\ViewInterface | View | |
$viewModelPrototype | object | Prototype object for view models |
Méthode | Description | |
---|---|---|
delete ( string | Zend\Mvc\Router\RouteInterface $route, callable $controller ) : |
Add a route for a DELETE request | |
event ( ) : |
Create and return an application event instance | |
events ( ) : Zend\EventManager\EventManagerInterface | Retrieve event manager instance | |
flash ( string $name, null | string $message = null ) : |
Create a flash message or retrieve the flash messages for a specific namespace | |
get ( string | Zend\Mvc\Router\RouteInterface $route, callable $controller ) : |
Add a route for a GET request | |
getFlashMessenger ( ) : Zend\Mvc\Controller\Plugin\FlashMessenger | Get flash messenger instance | |
getLog ( ) : Zend\Log\Logger | Retrieve logger | |
halt ( integer $status, string $message = '' ) : void | Halt execution | |
map ( string | Zend\Mvc\Router\RouteInterface $route, callable $controller ) : |
Map a route to a callback | |
options ( string | Zend\Mvc\Router\RouteInterface $route, callable $controller ) : |
Add a route for a OPTIONS request | |
params ( ) : Zend\Mvc\Router\RouteMatch | Return the route match parameters | |
pass ( ) | Pass execution on to next matching route | |
patch ( string | Zend\Mvc\Router\RouteInterface $route, callable $controller ) : |
Add a route for a PATCH request | |
post ( string | Zend\Mvc\Router\RouteInterface $route, callable $controller ) : |
Add a route for a POST request | |
put ( string | Zend\Mvc\Router\RouteInterface $route, callable $controller ) : |
Add a route for a PUT request | |
redirect ( string | Zend\Uri\UriInterface $uri, integer $status = 302 ) : void | Redirect | |
render ( string $template, array | object $viewModel = [] ) : |
Render a template | |
request ( ) : Zend\Http\PhpEnvironment\Request | Retrieve the request environment | |
response ( ) : Zend\Http\PhpEnvironment\Response | Retrieve the response environment | |
run ( ) | Run the application | |
setEventManager ( Zend\EventManager\EventManagerInterface $events ) : |
Set the event manager instance | |
setFlashMessenger ( Zend\Mvc\Controller\Plugin\FlashMessenger $flashMessenger ) : |
Set flash messenger instance | |
setLog ( Zend\Log\Logger $log ) : |
Set logger | |
setRequest ( Zend\Http\PhpEnvironment\Request $request ) : |
Set the request object instance | |
setResponse ( Zend\Http\PhpEnvironment\Response $response ) : |
Set the response object instance | |
setView ( Phlyty\View\ViewInterface $view ) : |
Set view object | |
setViewModelPrototype ( object $model ) : |
Set view model prototype object | |
stop ( ) : void | Stop execution | |
trigger ( string $name, array $params = [] ) : Zend\EventManager\ResponseCollection | Trigger a named event | |
urlFor ( string $route = null, array $params = [], array $options = [] ) : string | Generates a URL based on a named route | |
view ( ) : Phlyty\View\ViewInterface | Retrieve view instance | |
viewModel ( ) : object | Retrieve a view model instance |
Méthode | Description | |
---|---|---|
prepareRoutes ( ) | Prepare routes | |
registerNamedRoute ( |
Register a named route | |
registerRouteListener ( ) | Register the route listener with the route event | |
registerRouteMethods ( |
Determine what methods a route responds to | |
route ( Zend\Http\PhpEnvironment\Request $request, string $method ) : mixed | Route the request |
public event ( ) : |
||
Résultat |
public events ( ) : Zend\EventManager\EventManagerInterface | ||
Résultat | Zend\EventManager\EventManagerInterface |
public getFlashMessenger ( ) : Zend\Mvc\Controller\Plugin\FlashMessenger | ||
Résultat | Zend\Mvc\Controller\Plugin\FlashMessenger |
public getLog ( ) : Zend\Log\Logger | ||
Résultat | Zend\Log\Logger |
public params ( ) : Zend\Mvc\Router\RouteMatch | ||
Résultat | Zend\Mvc\Router\RouteMatch |
protected prepareRoutes ( ) |
protected registerNamedRoute ( |
||
$route |
protected registerRouteListener ( ) |
protected registerRouteMethods ( |
||
$route | ||
$index | integer |
public request ( ) : Zend\Http\PhpEnvironment\Request | ||
Résultat | Zend\Http\PhpEnvironment\Request |
public response ( ) : Zend\Http\PhpEnvironment\Response | ||
Résultat | Zend\Http\PhpEnvironment\Response |
public setEventManager ( Zend\EventManager\EventManagerInterface $events ) : |
||
$events | Zend\EventManager\EventManagerInterface | |
Résultat |
public setFlashMessenger ( Zend\Mvc\Controller\Plugin\FlashMessenger $flashMessenger ) : |
||
$flashMessenger | Zend\Mvc\Controller\Plugin\FlashMessenger | |
Résultat |
public setLog ( Zend\Log\Logger $log ) : |
||
$log | Zend\Log\Logger | |
Résultat |
public setRequest ( Zend\Http\PhpEnvironment\Request $request ) : |
||
$request | Zend\Http\PhpEnvironment\Request | |
Résultat |
public setResponse ( Zend\Http\PhpEnvironment\Response $response ) : |
||
$response | Zend\Http\PhpEnvironment\Response | |
Résultat |
public setView ( Phlyty\View\ViewInterface $view ) : |
||
$view | Phlyty\View\ViewInterface | |
Résultat |
public setViewModelPrototype ( object $model ) : |
||
$model | object | |
Résultat |
public view ( ) : Phlyty\View\ViewInterface | ||
Résultat | Phlyty\View\ViewInterface |
protected EventManagerInterface,Zend\EventManager $events | ||
Résultat | Zend\EventManager\EventManagerInterface |
protected FlashMessenger,Zend\Mvc\Controller\Plugin $flashMessenger | ||
Résultat | Zend\Mvc\Controller\Plugin\FlashMessenger |
protected Logger,Zend\Log $log | ||
Résultat | Zend\Log\Logger |
protected array $namedRoutes | ||
Résultat | array |
protected null|RouteMatch,Zend\Mvc\Router $params | ||
Résultat | null | Zend\Mvc\Router\RouteMatch |
protected Request,Zend\Http\PhpEnvironment $request | ||
Résultat | Zend\Http\PhpEnvironment\Request |
protected Response,Zend\Http\PhpEnvironment $response | ||
Résultat | Zend\Http\PhpEnvironment\Response |
protected bool $routeListenerRegistered | ||
Résultat | boolean |
protected array $routesByMethod | ||
Résultat | array |
protected ViewInterface,Phlyty\View $view | ||
Résultat | Phlyty\View\ViewInterface |
protected object $viewModelPrototype | ||
Résultat | object |