فهرست منبع

[Routing] fixed previous merge

Fabien Potencier 14 سال پیش
والد
کامیت
9aa8083cb4
1فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 5 4
      src/Symfony/Component/Routing/Loader/XmlFileLoader.php

+ 5 - 4
src/Symfony/Component/Routing/Loader/XmlFileLoader.php

@@ -48,7 +48,7 @@ class XmlFileLoader extends FileLoader
                 continue;
             }
 
-            $this->parseNode($collection, $node, $path);
+            $this->parseNode($collection, $node, $path, $file);
         }
 
         return $collection;
@@ -58,10 +58,11 @@ class XmlFileLoader extends FileLoader
      * Parses a node from a loaded XML file.
      *
      * @param RouteCollection $collection the collection to associate with the node
-     * @param DOMElement $node the node to parse
-     * @param string $path the path of the XML file being processed
+     * @param DOMElement      $node the node to parse
+     * @param string          $path the path of the XML file being processed
+     * @param string          $file
      */
-    protected function parseNode(RouteCollection $collection, \DOMElement $node, $path)
+    protected function parseNode(RouteCollection $collection, \DOMElement $node, $path, $file)
     {
         switch ($node->tagName) {
             case 'route':