Browse Source

fix name collision

Alan Gabriel Bem 13 years ago
parent
commit
6c52612371
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Route/AdminPoolLoader.php

+ 2 - 2
Route/AdminPoolLoader.php

@@ -11,7 +11,7 @@
 
 namespace Sonata\AdminBundle\Route;
 
-use Symfony\Component\Routing\RouteCollection;
+use Symfony\Component\Routing\RouteCollection as SymfonyRouteCollection;
 use Symfony\Component\Routing\Route;
 
 use Symfony\Component\Config\Loader\FileLoader;
@@ -65,7 +65,7 @@ class AdminPoolLoader extends FileLoader
      */
     public function load($resource, $type = null)
     {
-        $collection = new RouteCollection;
+        $collection = new SymfonyRouteCollection;
         foreach ($this->adminServiceIds as $id) {
 
             $admin = $this->pool->getInstance($id);