Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
819 B

5 years ago
  1. <?php
  2. namespace Zitec\RuleEngineBundle;
  3. use Symfony\Component\DependencyInjection\ContainerBuilder;
  4. use Symfony\Component\HttpKernel\Bundle\Bundle;
  5. use Zitec\RuleEngineBundle\DependencyInjection\Compiler\AutocompletePass;
  6. use Zitec\RuleEngineBundle\DependencyInjection\Compiler\ConditionsManagerPass;
  7. use Zitec\RuleEngineBundle\DependencyInjection\Compiler\ExpressionProviderPass;
  8. /**
  9. * Class RuleEngineBundle
  10. */
  11. class ZitecRuleEngineBundle extends Bundle
  12. {
  13. /**
  14. * @param ContainerBuilder $container
  15. */
  16. public function build(ContainerBuilder $container)
  17. {
  18. $container->addCompilerPass(new AutocompletePass());
  19. $container->addCompilerPass(new ExpressionProviderPass());
  20. $container->addCompilerPass(new ConditionsManagerPass());
  21. parent::build($container);
  22. }
  23. }