Skip to content

Commit 25b99ea

Browse files
committedNov 25, 2012
change the configureSideMenu signature to use the AdminInterface
1 parent eb64c3a commit 25b99ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎Admin/BaseMediaAdmin.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
namespace Sonata\MediaBundle\Admin;
1313

1414
use Sonata\AdminBundle\Admin\Admin;
15+
use Sonata\AdminBundle\Admin\AdminInterface;
1516
use Sonata\AdminBundle\Form\FormMapper;
16-
use Sonata\AdminBundle\Datagrid\DatagridMapper;
1717
use Sonata\AdminBundle\Datagrid\ListMapper;
18-
use Sonata\AdminBundle\Show\ShowMapper;
1918
use Sonata\AdminBundle\Route\RouteCollection;
2019
use Sonata\MediaBundle\Provider\Pool;
2120
use Sonata\MediaBundle\Form\DataTransformer\ProviderDataTransformer;
@@ -144,7 +143,7 @@ public function getNewInstance()
144143
/**
145144
* {@inheritdoc}
146145
*/
147-
protected function configureSideMenu(MenuItemInterface $menu, $action, Admin $childAdmin = null)
146+
protected function configureSideMenu(MenuItemInterface $menu, $action, AdminInterface $childAdmin = null)
148147
{
149148
if (!in_array($action, array('edit', 'view'))) {
150149
return;

0 commit comments

Comments
 (0)
Please sign in to comment.