Skip to content

Commit

Permalink
add expression-language 4 (#6)
Browse files Browse the repository at this point in the history
* add expression-language 4

* services id are now case sensitive
  • Loading branch information
pabedu authored Mar 22, 2018
1 parent 648ef80 commit 5a1394c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"name": "m6web/monolog-extra-bundle",
"type": "symfony-bundle",
Expand All @@ -16,11 +15,11 @@
"require": {
"php": ">=5.6",
"symfony/monolog-bundle": "~2.0 || ~3.0",
"symfony/expression-language": "~2.3 || ~3.0"
"symfony/expression-language": "~2.3 || ~3.0 || ~4.0"
},
"require-dev": {
"atoum/atoum": "~3.0",
"symfony/yaml": "~2.3 || ~3.0"
"symfony/yaml": "~2.3 || ~3.0 || ~4.0"
},
"autoload": {
"psr-0": { "": "src/" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function load(array $configs, ContainerBuilder $container)
$tagOptions['handler'] = $processor['handler'];
}

$definition = clone $container->getDefinition(sprintf('%s.processor.%s', $alias, $processor['type']));
$definition = clone $container->getDefinition(sprintf('%s.processor.%s', $alias, lcfirst($processor['type'])));
$definition->setAbstract(false);
$definition->addtag('monolog.processor', $tagOptions);

Expand Down

0 comments on commit 5a1394c

Please sign in to comment.