private function createControllerDefinition()
    {
        $id = $this->getServiceId('controller');
        if (!$this->container->has($id)) {
            $definition = new Definition($this->getServiceClass('controller'));
            $definition
                ->addMethodCall('setConfiguration', [new Reference($this->getServiceId('configuration'))])
                ->addMethodCall('setContainer', [new Reference('service_container')])
            ;
            $this->container->setDefinition($id, $definition);
        }
    }