Skip to content

Commit

Permalink
[Routing] Fixing a bug where the current directory was set too late i…
Browse files Browse the repository at this point in the history
…n the PhpFileLoader
  • Loading branch information
weaverryan committed May 29, 2011
1 parent 5432938 commit 4f0214e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Routing/Loader/PhpFileLoader.php
Expand Up @@ -35,9 +35,9 @@ public function load($file, $type = null)
$loader = $this;

$path = $this->locator->locate($file);
$this->setCurrentDir(dirname($path));

$collection = include $path;
$this->setCurrentDir(dirname($path));
$collection->addResource(new FileResource($path));

return $collection;
Expand Down

0 comments on commit 4f0214e

Please sign in to comment.