custom/plugins/DivanteCore/src/DivanteCore.php line 12

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Divante\Core;
  4. use Divante\Core\CompilerPass\EntityDefinitionOverrideCompilerPass;
  5. use Shopware\Core\Framework\Plugin;
  6. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  7. use Symfony\Component\DependencyInjection\ContainerBuilder;
  8. class DivanteCore extends Plugin
  9. {
  10.     public function build(ContainerBuilder $container): void
  11.     {
  12.         $container->addCompilerPass(
  13.             new EntityDefinitionOverrideCompilerPass(),
  14.             PassConfig::TYPE_REMOVE
  15.         );
  16.         parent::build($container);
  17.     }
  18. }