bundles/BlockManagerBundle/DependencyInjection/CompilerPass/Design/ThemePass.php
private function getAppDir(ContainerBuilder $container): string
    {
        if ($container->hasParameter('kernel.project_dir')) {
            return (string) $container->getParameter('kernel.project_dir') . '/' . (string) $container->getParameter('kernel.name');
        }

        return (string) $container->getParameter('kernel.root_dir');
    }
private function getAppDir(ContainerBuilder $container): string
    {
        if ($container->hasParameter('kernel.project_dir')) {
            return (string) $container->getParameter('kernel.project_dir') . '/' . (string) $container->getParameter('kernel.name');
        }

        return (string) $container->getParameter('kernel.root_dir');
    }
private function getAppDir ( ContainerBuilder $ container ) : string { if ( $ container -> hasParameter ( 'kernel.project_dir' ) ) { return ( string ) $ container -> getParameter ( 'kernel.project_dir' ) . '/' . ( string ) $ container -> getParameter ( 'kernel.name' ) ; } return ( string ) $ container -> getParameter ( 'kernel.root_dir' ) ; }
Returns the current app dir, abstracting Symfony 3.3+, where kernel.project_dir is available,
and Symfony 2.8 support, where only kernel.root_dir exists.
Returns the current app dir abstracting Symfony 3 . 3 + where kernel . project_dir is available and Symfony 2 . 8 support where only kernel . root_dir exists .