[Routing] fix CS
This commit is contained in:
parent
69b6c90330
commit
8f9ff4f7a0
@ -301,9 +301,9 @@ class XmlFileLoader extends FileLoader
|
|||||||
}
|
}
|
||||||
if ($stateless = $node->getAttribute('stateless')) {
|
if ($stateless = $node->getAttribute('stateless')) {
|
||||||
if (isset($defaults['_stateless'])) {
|
if (isset($defaults['_stateless'])) {
|
||||||
$name = $node->hasAttribute('id') ? sprintf('"%s"', $node->getAttribute('id')) : sprintf('the "%s" tag', $node->tagName);
|
$name = $node->hasAttribute('id') ? sprintf('"%s".', $node->getAttribute('id')) : sprintf('the "%s" tag.', $node->tagName);
|
||||||
|
|
||||||
throw new \InvalidArgumentException(sprintf('The routing file "%s" must not specify both the "stateless" attribute and the defaults key "_stateless" for %s.', $path, $name));
|
throw new \InvalidArgumentException(sprintf('The routing file "%s" must not specify both the "stateless" attribute and the defaults key "_stateless" for ', $path).$name);
|
||||||
}
|
}
|
||||||
|
|
||||||
$defaults['_stateless'] = XmlUtils::phpize($stateless);
|
$defaults['_stateless'] = XmlUtils::phpize($stateless);
|
||||||
|
Reference in New Issue
Block a user