[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 /* 4 * This file is part of the Symfony package. 5 * 6 * (c) Fabien Potencier <fabien@symfony.com> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12 namespace Symfony\Component\HttpKernel\Controller; 13 14 use Symfony\Component\HttpFoundation\Request; 15 16 /** 17 * A ControllerResolverInterface implementation knows how to determine the 18 * controller to execute based on a Request object. 19 * 20 * It can also determine the arguments to pass to the Controller. 21 * 22 * A Controller can be any valid PHP callable. 23 * 24 * @author Fabien Potencier <fabien@symfony.com> 25 */ 26 interface ControllerResolverInterface 27 { 28 /** 29 * Returns the Controller instance associated with a Request. 30 * 31 * As several resolvers can exist for a single application, a resolver must 32 * return false when it is not able to determine the controller. 33 * 34 * The resolver must only throw an exception when it should be able to load a 35 * controller but cannot because of some errors made by the developer. 36 * 37 * @return callable|false A PHP callable representing the Controller, 38 * or false if this resolver is not able to determine the controller 39 * 40 * @throws \LogicException If the controller can't be found 41 */ 42 public function getController(Request $request); 43 44 /** 45 * Returns the arguments to pass to the controller. 46 * 47 * @param Request $request A Request instance 48 * @param callable $controller A PHP callable 49 * 50 * @return array An array of arguments to pass to the controller 51 * 52 * @throws \RuntimeException When value for argument given is not provided 53 * 54 * @deprecated This method is deprecated as of 3.1 and will be removed in 4.0. Please use the {@see ArgumentResolverInterface} instead. 55 */ 56 public function getArguments(Request $request, $controller); 57 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |