| 1 | <?php |
||
| 20 | class AuthenticatingDispatcher extends RMF\Dispatcher\Simple |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Authenticator. |
||
| 24 | * |
||
| 25 | * @var \eZ\Publish\Core\REST\Server\Authenticator |
||
| 26 | */ |
||
| 27 | protected $authenticator; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Creates a new authenticating dispatcher. |
||
| 31 | * |
||
| 32 | * @param RMF\Router $router |
||
| 33 | * @param RMF\View $view |
||
| 34 | * @param \eZ\Publish\Core\REST\Server\Authenticator $authenticator |
||
| 35 | */ |
||
| 36 | public function __construct(RMF\Router $router, RMF\View $view, Authenticator $authenticator) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Performs authentication and dispatches the request. |
||
| 44 | * |
||
| 45 | * @param RMF\Request $request |
||
| 46 | */ |
||
| 47 | public function dispatch(RMF\Request $request) |
||
| 56 | } |
||
| 57 |