From b039fd706d6b89936a37b11ff9d2abb47ec0af9c Mon Sep 17 00:00:00 2001 From: Bruno Galeotti Date: Mon, 30 Nov 2015 16:18:10 -0300 Subject: [PATCH] [AdminPoolLoader] Extend Loader instead of FileLoader to avoid deprecation message --- Route/AdminPoolLoader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Route/AdminPoolLoader.php b/Route/AdminPoolLoader.php index b492afde9f..6d5dd322c2 100644 --- a/Route/AdminPoolLoader.php +++ b/Route/AdminPoolLoader.php @@ -12,7 +12,7 @@ namespace Sonata\AdminBundle\Route; use Sonata\AdminBundle\Admin\Pool; -use Symfony\Component\Config\Loader\FileLoader; +use Symfony\Component\Config\Loader\Loader; use Symfony\Component\Config\Resource\FileResource; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\Routing\RouteCollection as SymfonyRouteCollection; @@ -22,7 +22,7 @@ * * @author Thomas Rabaix */ -class AdminPoolLoader extends FileLoader +class AdminPoolLoader extends Loader { const ROUTE_TYPE_NAME = 'sonata_admin';