function __construct(ApplicationInterface $application) { $this->application = $application; $this->request = $application->getKernel()->getParameter('request'); $this->response = new Response(); }