diff --git a/MariaBundle.php b/MariaBundle.php index 509498b..ee8d68d 100644 --- a/MariaBundle.php +++ b/MariaBundle.php @@ -7,9 +7,5 @@ class MariaBundle extends Bundle { - public function build(ContainerBuilder $container) - { - parent::build($container); - $container->addCompilerPass(new InjectComparators()); - } + } \ No newline at end of file diff --git a/Matcher/MatcherFactory.php b/Matcher/MatcherFactory.php index 0103738..1bb7ad0 100644 --- a/Matcher/MatcherFactory.php +++ b/Matcher/MatcherFactory.php @@ -10,6 +10,7 @@ class MatcherFactory const MATCHER_NONE = 'none'; const MATCHER_FIRST = 'first'; const MATCHER_LAST = 'last'; + const MATCHER_DEFAULT = 'default'; /** @var OperatorFactory */ private $operatorFactory; @@ -67,7 +68,7 @@ private function createMatcher($scenarioRules) return new FirstMatcher($operator); case self::MATCHER_LAST: return new LastMatcher($operator); - case 'default': + case self::MATCHER_DEFAULT: return new DefaultMatcher($operator); } }