-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Symfony and Sonata 3.x (#26)
- Loading branch information
1 parent
1336ea5
commit 92473c7
Showing
5 changed files
with
45 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,19 +11,21 @@ | |
|
||
namespace CoopTilleuls\Bundle\CKEditorSonataMediaBundle\Admin; | ||
|
||
use Sonata\AdminBundle\Admin\AdminExtension; | ||
use Sonata\AdminBundle\Admin\AbstractAdminExtension; | ||
use Sonata\AdminBundle\Admin\AdminInterface; | ||
use Sonata\AdminBundle\Route\RouteCollection; | ||
|
||
/** | ||
* Adds browser and upload routes to the Admin | ||
* | ||
* @author Kévin Dunglas <[email protected]> | ||
*/ | ||
class MediaAdminExtension extends AdminExtension | ||
class MediaAdminExtension extends AbstractAdminExtension | ||
{ | ||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function configureRoutes(\Sonata\AdminBundle\Admin\AdminInterface $admin, \Sonata\AdminBundle\Route\RouteCollection $collection) | ||
public function configureRoutes(AdminInterface $admin, RouteCollection $collection) | ||
{ | ||
$collection->add('browser', 'browser'); | ||
$collection->add('upload', 'upload'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters