[Routing] Used static to call constant in XmlFileLoader
This commit is contained in:
parent
5096292111
commit
18daa1017c
@ -76,7 +76,7 @@ class XmlFileLoader extends FileLoader
|
||||
*/
|
||||
protected function parseNode(RouteCollection $collection, \DOMElement $node, $path, $file)
|
||||
{
|
||||
if (self::NAMESPACE_URI !== $node->namespaceURI) {
|
||||
if (static::NAMESPACE_URI !== $node->namespaceURI) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -192,7 +192,7 @@ class XmlFileLoader extends FileLoader
|
||||
$requirements = array();
|
||||
$options = array();
|
||||
|
||||
foreach ($node->getElementsByTagNameNS(self::NAMESPACE_URI, '*') as $n) {
|
||||
foreach ($node->getElementsByTagNameNS(static::NAMESPACE_URI, '*') as $n) {
|
||||
switch ($n->localName) {
|
||||
case 'default':
|
||||
$defaults[$n->getAttribute('key')] = trim($n->textContent);
|
||||
|
Reference in New Issue
Block a user