DependencyInjection/Extension.php
public function prepend(ContainerBuilder $container)
    {
        if (is_dir($dir = $this->getConfigurationDirectory().'/prepend')) {
            $bundles = $container->getParameter('kernel.bundles');
            $finder = new Finder();

            /** @var \Symfony\Component\Finder\SplFileInfo $file */
            foreach ($finder->in($this->getConfigurationDirectory() . '/prepend')->files()->name('*.yml') as $file) {
                $bundle = $file->getBasename('.yml');
                if (array_key_exists($bundle, $bundles)) {
                    $configs = Yaml::parse($file->getRealPath());
                    foreach ($configs as $key => $config) {
                        $container->prependExtensionConfig($key, $config);
                    }
                }
            }
        }
    }
public function prepend(ContainerBuilder $container)
    {
        if (is_dir($dir = $this->getConfigurationDirectory().'/prepend')) {
            $bundles = $container->getParameter('kernel.bundles');
            $finder = new Finder();

            /** @var \Symfony\Component\Finder\SplFileInfo $file */
            foreach ($finder->in($this->getConfigurationDirectory() . '/prepend')->files()->name('*.yml') as $file) {
                $bundle = $file->getBasename('.yml');
                if (array_key_exists($bundle, $bundles)) {
                    $configs = Yaml::parse($file->getRealPath());
                    foreach ($configs as $key => $config) {
                        $container->prependExtensionConfig($key, $config);
                    }
                }
            }
        }
    }
{@inheritDoc}