[Routing] Used static to call constant in XmlFileLoader

This commit is contained in:
Francis Besset 2012-12-21 08:51:31 +01:00
parent 5096292111
commit 18daa1017c

View File

@ -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);