Skip to content

Commit

Permalink
fix: compatibility with Sonata AbstractAdminExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
JacquesDurand authored and dunglas committed Dec 14, 2023
1 parent 790bb02 commit e3a1112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Admin/MediaAdminExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

use Sonata\AdminBundle\Admin\AbstractAdminExtension;
use Sonata\AdminBundle\Admin\AdminInterface;
use Sonata\AdminBundle\Route\RouteCollection;
use Sonata\AdminBundle\Route\RouteCollectionInterface;

/**
* Adds browser and upload routes to the Admin.
Expand All @@ -24,7 +24,7 @@
*/
class MediaAdminExtension extends AbstractAdminExtension
{
public function configureRoutes(AdminInterface $admin, RouteCollection $collection)
public function configureRoutes(AdminInterface $admin, RouteCollectionInterface $collection): void
{
$collection->add('browser', 'browser');
$collection->add('upload', 'upload');
Expand Down

0 comments on commit e3a1112

Please sign in to comment.