<?php declare(strict_types=1);
namespace Compra\EsiCustomizingSW6;
use Compra\EsiSW6\Core\Framework\Esi\ImportInjection\ImportInjectionCollector;
use Shopware\Core\Framework\Plugin;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class CompraEsiCustomizingSW6 extends Plugin
{
public function build(ContainerBuilder $container): void
{
// set the plugin dir path
$container->setParameter('compra_esi_customizing_s_w6.plugin_dir', $this->getPath());
// add the injection collector to containerBuilder to collect the injections (IMPORTANT!)
$container->addCompilerPass(new ImportInjectionCollector());
parent::build($container);
}
}