Skip to content

Commit

Permalink
Use ContextAwareAdmin for collection and category (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 authored and soullivaneuh committed May 29, 2016
1 parent 13bd041 commit 52945a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Admin/CategoryAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@

namespace Sonata\ClassificationBundle\Admin;

use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Route\RouteCollection;

class CategoryAdmin extends Admin
class CategoryAdmin extends ContextAwareAdmin
{
protected $formOptions = array(
'cascade_validation' => true,
Expand Down
3 changes: 1 addition & 2 deletions Admin/CollectionAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@

namespace Sonata\ClassificationBundle\Admin;

use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;

class CollectionAdmin extends Admin
class CollectionAdmin extends ContextAwareAdmin
{
protected $formOptions = array(
'cascade_validation' => true,
Expand Down

0 comments on commit 52945a5

Please sign in to comment.