Skip to content

Commit

Permalink
fix bundle
Browse files Browse the repository at this point in the history
xmarchegay committed Jun 27, 2024
1 parent f779cc1 commit e823b6a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/CleverAgeProcessBundle.php
Original file line number Diff line number Diff line change
@@ -16,20 +16,25 @@
use CleverAge\ProcessBundle\DependencyInjection\Compiler\CheckSerializerCompilerPass;
use CleverAge\ProcessBundle\DependencyInjection\Compiler\RegistryCompilerPass;
use CleverAge\ProcessBundle\Registry\TransformerRegistry;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class CleverAgeProcessBundle extends AbstractBundle
class CleverAgeProcessBundle extends Bundle
{
/**
* Adding compiler passes to inject services into registry.
*/
public function build(ContainerBuilder $container): void
{
parent::build($container);

$container->addCompilerPass(
new RegistryCompilerPass(TransformerRegistry::class, 'cleverage.transformer', 'addTransformer')
new RegistryCompilerPass(TransformerRegistry::class, 'cleverage.transformer', 'addTransformer'),
PassConfig::TYPE_BEFORE_OPTIMIZATION,
0
);

$container->addCompilerPass(new CheckSerializerCompilerPass());
$container->addCompilerPass(new CheckSerializerCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 0);
}
}

0 comments on commit e823b6a

Please sign in to comment.