Skip to content

Commit

Permalink
remove plugin support
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Oct 1, 2024
1 parent de7fb0e commit cef7a69
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions src/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,13 @@

namespace Acquia\Cli;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\Config\Loader\DelegatingLoader;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\Config\Loader\LoaderResolver;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Loader\DirectoryLoader;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\Finder\Finder;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;

/**
Expand All @@ -36,7 +29,6 @@ public function registerBundles(): iterable
public function registerContainerConfiguration(LoaderInterface $loader): void
{
$loader->load($this->getProjectDir() . '/config/' . $this->getEnvironment() . '/services.yml');
$this->registerExtensionConfiguration($loader);
}

/** @infection-ignore-all */
Expand All @@ -46,37 +38,6 @@ public function getCacheDir(): string
return parent::getCacheDir() . $testToken;
}

protected function registerExtensionConfiguration(mixed $loader): void
{
// Search for plugins.
$finder = new Finder();
$extensions = $finder->files()
->in([
__DIR__ . '/../../',
])
->depth(1)
->name('acli.services.yml');
foreach ($extensions as $extension) {
$loader->load($extension->getRealPath());
}
}

/**
* Returns a loader for the container.
*
* @return \Symfony\Component\Config\Loader\DelegatingLoader The loader
*/
protected function getContainerLoader(ContainerInterface $container): DelegatingLoader
{
$locator = new FileLocator([$this->getProjectDir()]);
$resolver = new LoaderResolver([
new YamlFileLoader($container, $locator),
new DirectoryLoader($container, $locator),
]);

return new DelegatingLoader($resolver);
}

protected function build(ContainerBuilder $containerBuilder): void
{
$containerBuilder->addCompilerPass($this->createCollectingCompilerPass());
Expand Down

0 comments on commit cef7a69

Please sign in to comment.