public function __construct(CorsService $cors, Router $router, Kernel $kernel) { $this->cors = $cors; $this->router = $router; $this->kernel = $kernel; }