Revert "merged branch francisbesset/routing_constant_usage (PR #6449)"

This reverts commit c0e341c618, reversing
changes made to 35f5bca585.
This commit is contained in:
Fabien Potencier 2012-12-28 14:21:48 +01:00
parent c0e341c618
commit 48920722f7

View File

@ -76,7 +76,7 @@ class XmlFileLoader extends FileLoader
*/
protected function parseNode(RouteCollection $collection, \DOMElement $node, $path, $file)
{
if (static::NAMESPACE_URI !== $node->namespaceURI) {
if (self::NAMESPACE_URI !== $node->namespaceURI) {
return;
}
@ -192,7 +192,7 @@ class XmlFileLoader extends FileLoader
$requirements = array();
$options = array();
foreach ($node->getElementsByTagNameNS(static::NAMESPACE_URI, '*') as $n) {
foreach ($node->getElementsByTagNameNS(self::NAMESPACE_URI, '*') as $n) {
switch ($n->localName) {
case 'default':
$defaults[$n->getAttribute('key')] = trim($n->textContent);