12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace Symfony\Component\HttpKernel\Event;
- use Symfony\Component\HttpFoundation\Request;
- use Symfony\Component\HttpKernel\HttpKernelInterface;
- final class ControllerArgumentsEvent extends KernelEvent
- {
- private $controller;
- private $arguments;
- public function __construct(HttpKernelInterface $kernel, callable $controller, array $arguments, Request $request, ?int $requestType)
- {
- parent::__construct($kernel, $request, $requestType);
- $this->controller = $controller;
- $this->arguments = $arguments;
- }
- public function getController(): callable
- {
- return $this->controller;
- }
- public function setController(callable $controller)
- {
- $this->controller = $controller;
- }
- public function getArguments(): array
- {
- return $this->arguments;
- }
- public function setArguments(array $arguments)
- {
- $this->arguments = $arguments;
- }
- }
|