From cef7a690b8fbdc91ef563760bba1d19ecd232a55 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Tue, 1 Oct 2024 15:28:39 -0700 Subject: [PATCH] remove plugin support --- src/Kernel.php | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/src/Kernel.php b/src/Kernel.php index aa1ecd558..2143f6353 100644 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -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; /** @@ -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 */ @@ -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());