From 674b7a9f28cc3d8bc90804f08bfa831c4f08ef04 Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Thu, 19 Sep 2024 18:05:04 +0700 Subject: [PATCH] remove remnant --- config/services_test.php | 78 ------------------- .../RekalogikaReconstitutorExtension.php | 6 -- 2 files changed, 84 deletions(-) delete mode 100644 config/services_test.php diff --git a/config/services_test.php b/config/services_test.php deleted file mode 100644 index 56b43c7..0000000 --- a/config/services_test.php +++ /dev/null @@ -1,78 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE file - * that was distributed with this source code. - */ - -use Rekalogika\Reconstitutor\Doctrine\DoctrineListener; -use Rekalogika\Reconstitutor\ReconstitutorProcessor; -use Rekalogika\Reconstitutor\Resolver\AttributeReconstitutorResolver; -use Rekalogika\Reconstitutor\Resolver\ClassReconstitutorResolver; -use Rekalogika\Reconstitutor\Tests\Reconstitutor\AttributeReconstitutor; -use Rekalogika\Reconstitutor\Tests\Reconstitutor\EntityReconstitutor; -use Rekalogika\Reconstitutor\Tests\Reconstitutor\InterfaceReconstitutor; -use Rekalogika\Reconstitutor\Tests\Reconstitutor\SuperclassReconstitutor; -use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; - -return static function (ContainerConfigurator $containerConfigurator): void { - $services = $containerConfigurator->services(); - - // $services->alias( - // 'test.' . ClassReconstitutorResolver::class, - // ClassReconstitutorResolver::class, - // )->public(); - - // $services->alias( - // 'test.' . AttributeReconstitutorResolver::class, - // AttributeReconstitutorResolver::class, - // )->public(); - - // $services->alias( - // 'test.' . ReconstitutorProcessor::class, - // ReconstitutorProcessor::class, - // )->public(); - - // $services->alias( - // 'test.' . DoctrineListener::class, - // DoctrineListener::class, - // )->public(); - - // if (class_exists(EntityReconstitutor::class)) { - // $services->set(EntityReconstitutor::class) - // ->args([ - // __DIR__ . '/../var/storage.txt', - // ]) - // ->tag('rekalogika.reconstitutor.class'); - // } - - // if (class_exists(InterfaceReconstitutor::class)) { - // $services->set(InterfaceReconstitutor::class) - // ->args([ - // __DIR__ . '/../var/storage.txt', - // ]) - // ->tag('rekalogika.reconstitutor.class'); - // } - - // if (class_exists(SuperclassReconstitutor::class)) { - // $services->set(SuperclassReconstitutor::class) - // ->args([ - // __DIR__ . '/../var/storage.txt', - // ]) - // ->tag('rekalogika.reconstitutor.class'); - // } - - // if (class_exists(AttributeReconstitutor::class)) { - // $services->set(AttributeReconstitutor::class) - // ->args([ - // __DIR__ . '/../var/storage.txt', - // ]) - // ->tag('rekalogika.reconstitutor.attribute'); - // } -}; diff --git a/src/DependencyInjection/RekalogikaReconstitutorExtension.php b/src/DependencyInjection/RekalogikaReconstitutorExtension.php index ca35ab8..7d75bb0 100644 --- a/src/DependencyInjection/RekalogikaReconstitutorExtension.php +++ b/src/DependencyInjection/RekalogikaReconstitutorExtension.php @@ -29,18 +29,12 @@ class RekalogikaReconstitutorExtension extends Extension #[\Override] public function load(array $configs, ContainerBuilder $container): void { - // $env = $container->getParameter('kernel.environment'); - $loader = new PhpFileLoader( $container, new FileLocator(__DIR__ . '/../../config'), ); $loader->load('services.php'); - // if ('test' === $env) { - // $loader->load('services_test.php'); - // } - $container ->registerForAutoconfiguration(ReconstitutorResolverInterface::class) ->addTag('rekalogika.reconstitutor.resolver');