protected function generateServerConfig(): void
    {
        $settings = [];

        // Siteaccess match settings

        $settings['ezpublish']['siteaccess']['match']['URIElement'] = '1';

        // Config specific files

        $kernelDir = $this->container->getParameter('kernel.project_dir') . '/' . $this->container->getParameter('kernel.name');
        $serverEnv = $this->container->getParameter('server_environment');

        file_put_contents(
            $kernelDir . '/config/server/' . $serverEnv . '/ezplatform_siteaccess.yml',
            Yaml::dump($settings, 7)
        );

        // Root settings file

        $rootSettings = [
            'imports' => [
                [
                    'resource' => $serverEnv . '/ezplatform_siteaccess.yml',
                ],
            ],
        ];

        file_put_contents(
            $kernelDir . '/config/server/' . $serverEnv . '.yml',
            Yaml::dump($rootSettings, 7)
        );
    }
protected function generateServerConfig(): void
    {
        $settings = [];

        // Siteaccess match settings

        $settings['ezpublish']['siteaccess']['match']['URIElement'] = '1';

        // Config specific files

        $kernelDir = $this->container->getParameter('kernel.project_dir') . '/' . $this->container->getParameter('kernel.name');
        $serverEnv = $this->container->getParameter('server_environment');

        file_put_contents(
            $kernelDir . '/config/server/' . $serverEnv . '/ezplatform_siteaccess.yml',
            Yaml::dump($settings, 7)
        );

        // Root settings file

        $rootSettings = [
            'imports' => [
                [
                    'resource' => $serverEnv . '/ezplatform_siteaccess.yml',
                ],
            ],
        ];

        file_put_contents(
            $kernelDir . '/config/server/' . $serverEnv . '.yml',
            Yaml::dump($rootSettings, 7)
        );
    }
protected function generateServerConfig ( ) : void { $ settings = [ ] ; // Siteaccess match settings $ settings [ 'ezpublish' ] [ 'siteaccess' ] [ 'match' ] [ 'URIElement' ] = '1' ; // Config specific files $ kernelDir = $ this -> container -> getParameter ( 'kernel.project_dir' ) . '/' . $ this -> container -> getParameter ( 'kernel.name' ) ; $ serverEnv = $ this -> container -> getParameter ( 'server_environment' ) ; file_put_contents ( $ kernelDir . '/config/server/' . $ serverEnv . '/ezplatform_siteaccess.yml' , Yaml :: dump ( $ settings , 7 ) ) ; // Root settings file $ rootSettings = [ 'imports' => [ [ 'resource' => $ serverEnv . '/ezplatform_siteaccess.yml' , ] , ] , ] ; file_put_contents ( $ kernelDir . '/config/server/' . $ serverEnv . '.yml' , Yaml :: dump ( $ rootSettings , 7 ) ) ; }
Generates settings that are specific to server.
Generates settings that are specific to server .