Skip to content

Commit

Permalink
Merge pull request #8 from ibrahimgunduz34/fix_missing_compiler_pass
Browse files Browse the repository at this point in the history
Missing compilerpass definition is removed
  • Loading branch information
ibrahimgunduz34 committed Dec 14, 2019
2 parents 1693e2a + 518d986 commit e1c126d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions MariaBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@

class MariaBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new InjectComparators());
}

}
3 changes: 2 additions & 1 deletion Matcher/MatcherFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit e1c126d

Please sign in to comment.