diff --git a/src/Symfony/Component/Routing/Loader/PhpFileLoader.php b/src/Symfony/Component/Routing/Loader/PhpFileLoader.php index 9e009387dd..d81e7e82e7 100644 --- a/src/Symfony/Component/Routing/Loader/PhpFileLoader.php +++ b/src/Symfony/Component/Routing/Loader/PhpFileLoader.php @@ -48,7 +48,7 @@ class PhpFileLoader extends FileLoader if ($result instanceof \Closure) { $collection = new RouteCollection(); - $result(new RoutingConfigurator($collection, $this, $path, $file), $this); + $result(new RoutingConfigurator($collection, $this, $path, $file)); } else { $collection = $result; }