Skip to content

Commit

Permalink
[Routing] Used static to call constant in XmlFileLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
francisbesset committed Dec 25, 2012
1 parent 5096292 commit 18daa10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Routing/Loader/XmlFileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function load($file, $type = null)
*/
protected function parseNode(RouteCollection $collection, \DOMElement $node, $path, $file)
{
if (self::NAMESPACE_URI !== $node->namespaceURI) {
if (static::NAMESPACE_URI !== $node->namespaceURI) {
return;
}

Expand Down Expand Up @@ -192,7 +192,7 @@ private function parseConfigs(\DOMElement $node, $path)
$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);
Expand Down

0 comments on commit 18daa10

Please sign in to comment.