Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Controller/ControllerResolverInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Core\Controller; | |
4 | |
5 use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface as BaseControllerResolverInterface; | |
6 | |
7 /** | |
8 * Extends the ControllerResolverInterface from symfony. | |
9 */ | |
10 interface ControllerResolverInterface extends BaseControllerResolverInterface { | |
11 | |
12 /** | |
13 * Returns the Controller instance with a given controller route definition. | |
14 * | |
15 * As several resolvers can exist for a single application, a resolver must | |
16 * return false when it is not able to determine the controller. | |
17 * | |
18 * @param mixed $controller | |
19 * The controller attribute like in $request->attributes->get('_controller') | |
20 * | |
21 * @return mixed|bool | |
22 * A PHP callable representing the Controller, or false if this resolver is | |
23 * not able to determine the controller | |
24 * | |
25 * @throws \InvalidArgumentException|\LogicException | |
26 * Thrown if the controller can't be found. | |
27 * | |
28 * @see \Symfony\Component\HttpKernel\Controller\ControllerResolverInterface::getController() | |
29 */ | |
30 public function getControllerFromDefinition($controller); | |
31 | |
32 } |