Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / http-kernel / Event / FilterControllerArgumentsEvent.php
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\Event;
13
14 use Symfony\Component\HttpFoundation\Request;
15 use Symfony\Component\HttpKernel\HttpKernelInterface;
16
17 /**
18  * Allows filtering of controller arguments.
19  *
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.
23  *
24  * Arguments set in the event must be compatible with the signature of the
25  * controller.
26  *
27  * @author Christophe Coevoet <stof@notk.org>
28  */
29 class FilterControllerArgumentsEvent extends FilterControllerEvent
30 {
31     private $arguments;
32
33     public function __construct(HttpKernelInterface $kernel, callable $controller, array $arguments, Request $request, $requestType)
34     {
35         parent::__construct($kernel, $controller, $request, $requestType);
36
37         $this->arguments = $arguments;
38     }
39
40     /**
41      * @return array
42      */
43     public function getArguments()
44     {
45         return $this->arguments;
46     }
47
48     public function setArguments(array $arguments)
49     {
50         $this->arguments = $arguments;
51     }
52 }