|
@@ -11,8 +11,6 @@
|
|
|
|
|
|
namespace Sonata\AdminBundle\Admin;
|
|
namespace Sonata\AdminBundle\Admin;
|
|
|
|
|
|
-use Knp\Menu\FactoryInterface as MenuFactoryInterface;
|
|
|
|
-use Knp\Menu\ItemInterface;
|
|
|
|
use Sonata\AdminBundle\Builder\DatagridBuilderInterface;
|
|
use Sonata\AdminBundle\Builder\DatagridBuilderInterface;
|
|
use Sonata\AdminBundle\Builder\FormContractorInterface;
|
|
use Sonata\AdminBundle\Builder\FormContractorInterface;
|
|
use Sonata\AdminBundle\Builder\ListBuilderInterface;
|
|
use Sonata\AdminBundle\Builder\ListBuilderInterface;
|
|
@@ -34,7 +32,7 @@ use Symfony\Component\Validator\ValidatorInterface as LegacyValidatorInterface;
|
|
/**
|
|
/**
|
|
* @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
|
|
* @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
|
|
*/
|
|
*/
|
|
-interface AdminInterface extends FieldDescriptionRegistryInterface, LifecycleHookProviderInterface
|
|
|
|
|
|
+interface AdminInterface extends FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface
|
|
{
|
|
{
|
|
/**
|
|
/**
|
|
* @param FormContractorInterface $formContractor
|
|
* @param FormContractorInterface $formContractor
|
|
@@ -398,16 +396,6 @@ interface AdminInterface extends FieldDescriptionRegistryInterface, LifecycleHoo
|
|
*/
|
|
*/
|
|
public function getExtensions();
|
|
public function getExtensions();
|
|
|
|
|
|
- /**
|
|
|
|
- * @param \Knp\Menu\FactoryInterface $menuFactory
|
|
|
|
- */
|
|
|
|
- public function setMenuFactory(MenuFactoryInterface $menuFactory);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * @return \Knp\Menu\FactoryInterface
|
|
|
|
- */
|
|
|
|
- public function getMenuFactory();
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* @param RouteBuilderInterface $routeBuilder
|
|
* @param RouteBuilderInterface $routeBuilder
|
|
*/
|
|
*/
|
|
@@ -806,28 +794,6 @@ interface AdminInterface extends FieldDescriptionRegistryInterface, LifecycleHoo
|
|
*/
|
|
*/
|
|
public function getTranslationLabel($label, $context = '', $type = '');
|
|
public function getTranslationLabel($label, $context = '', $type = '');
|
|
|
|
|
|
- /**
|
|
|
|
- * NEXT_MAJOR: remove this method.
|
|
|
|
- *
|
|
|
|
- * @param string $action
|
|
|
|
- * @param AdminInterface $childAdmin
|
|
|
|
- *
|
|
|
|
- * @return ItemInterface|bool
|
|
|
|
- *
|
|
|
|
- * @deprecated Use buildTabMenu instead
|
|
|
|
- */
|
|
|
|
- public function buildSideMenu($action, AdminInterface $childAdmin = null);
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * Build the tab menu related to the current action.
|
|
|
|
- *
|
|
|
|
- * @param string $action
|
|
|
|
- * @param AdminInterface $childAdmin
|
|
|
|
- *
|
|
|
|
- * @return ItemInterface|bool
|
|
|
|
- */
|
|
|
|
- public function buildTabMenu($action, AdminInterface $childAdmin = null);
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* @param $object
|
|
* @param $object
|
|
*
|
|
*
|