4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpKernel\Event;
14 use Symfony\Component\HttpFoundation\Request;
15 use Symfony\Component\HttpKernel\HttpKernelInterface;
18 * Allows filtering of controller arguments.
20 * You can call getController() to retrieve the controller and getArguments
21 * to retrieve the current arguments. With setArguments() you can replace
22 * arguments that are used to call the controller.
24 * Arguments set in the event must be compatible with the signature of the
27 * @author Christophe Coevoet <stof@notk.org>
29 class FilterControllerArgumentsEvent extends FilterControllerEvent
33 public function __construct(HttpKernelInterface $kernel, callable $controller, array $arguments, Request $request, $requestType)
35 parent::__construct($kernel, $controller, $request, $requestType);
37 $this->arguments = $arguments;
43 public function getArguments()
45 return $this->arguments;
48 public function setArguments(array $arguments)
50 $this->arguments = $arguments;