protected function prepareContainer(Container $container)
    {
        foreach ($this->getKernelParameters() as $key => $value) {
            $container[$key] = $value;
        }

        $container->set('kernel', $this);
        $container->set('configuration', $this->configuration);
        $container->set('request', $this->request);
        $container->set('request_stack', $this->requestStack);
        $container->set('session', $this->session);
    }