Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[DependencyInjection] Made the reference case insensitive

The container is case insensitive so using capital letters in a reference
made it fail in some cases when checking the dependencies.
Closes #2807
  • Loading branch information...
commit ba12953e278a996c4c06868d922e43e54b175112 1 parent 0a5240d
Christophe Coevoet stof authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Reference.php
2  Reference.php
View
@@ -35,7 +35,7 @@ class Reference
*/
public function __construct($id, $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, $strict = true)
{
- $this->id = $id;
+ $this->id = strtolower($id);
$this->invalidBehavior = $invalidBehavior;
$this->strict = $strict;
}
Please sign in to comment.
Something went wrong with that request. Please try again.