DependencyInjection/BaseExtension.php
private function loadFiles(array $configFiles, ContainerBuilder $container)
    {
        $loader = new YamlFileLoader($container, new FileLocator($this->getConfigFilesLocation()));

        foreach ($configFiles as $configFile) {
            if (is_array($configFile)) {
                if (isset($configFile[1]) && false === $configFile[1]) {
                    continue;
                }

                $configFile = $configFile[0];
            }

            $loader->load($configFile.'.yml');
        }
    }
private function loadFiles(array $configFiles, ContainerBuilder $container)
    {
        $loader = new YamlFileLoader($container, new FileLocator($this->getConfigFilesLocation()));

        foreach ($configFiles as $configFile) {
            if (is_array($configFile)) {
                if (isset($configFile[1]) && false === $configFile[1]) {
                    continue;
                }

                $configFile = $configFile[0];
            }

            $loader->load($configFile.'.yml');
        }
    }
private function loadFiles ( array $ configFiles , ContainerBuilder $ container ) { $ loader = new YamlFileLoader ( $ container , new FileLocator ( $ this -> getConfigFilesLocation ( ) ) ) ; foreach ( $ configFiles as $ configFile ) { if ( is_array ( $ configFile ) ) { if ( isset ( $ configFile [ 1 ] ) && false === $ configFile [ 1 ] ) { continue ; } $ configFile = $ configFile [ 0 ] ; } $ loader -> load ( $ configFile . '.yml' ) ; } }
Load multiple files.

@param array            $configFiles Config files
@param ContainerBuilder $container   Container
Load multiple files .