registerRouterConfiguration example


        }

        $propertyInfoEnabled = $this->readConfigEnabled('property_info', $container$config['property_info']);
        $this->registerHttpCacheConfiguration($config['http_cache']$container$config['http_method_override']);
        $this->registerEsiConfiguration($config['esi']$container$loader);
        $this->registerSsiConfiguration($config['ssi']$container$loader);
        $this->registerFragmentsConfiguration($config['fragments']$container$loader);
        $this->registerTranslatorConfiguration($config['translator']$container$loader$config['default_locale']$config['enabled_locales']);
        $this->registerWorkflowConfiguration($config['workflows']$container$loader);
        $this->registerDebugConfiguration($config['php_errors']$container$loader);
        $this->registerRouterConfiguration($config['router']$container$loader$config['enabled_locales']);
        $this->registerAnnotationsConfiguration($config['annotations']$container$loader);
        $this->registerPropertyAccessConfiguration($config['property_access']$container$loader);
        $this->registerSecretsConfiguration($config['secrets']$container$loader);

        $container->getDefinition('exception_listener')->replaceArgument(3, $config['exceptions']);

        if ($this->readConfigEnabled('serializer', $container$config['serializer'])) {
            if (!class_exists(Serializer::class)) {
                throw new LogicException('Serializer support cannot be enabled as the Serializer component is not installed. Try running "composer require symfony/serializer-pack".');
            }

            
Home | Imprint | This part of the site doesn't use cookies.