mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 18:13:48 +00:00
crudification + corrections on thirdparty
This commit is contained in:
@@ -37,13 +37,13 @@ class MenuBuilder implements LocalMenuBuilderInterface
|
||||
* @var AuthorizationCheckerInterface
|
||||
*/
|
||||
protected $authorizationChecker;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @var TranslatorInterface
|
||||
*/
|
||||
protected $translator;
|
||||
|
||||
|
||||
public function __construct(
|
||||
AuthorizationCheckerInterface $authorizationChecker,
|
||||
TranslatorInterface $translator
|
||||
@@ -52,15 +52,15 @@ class MenuBuilder implements LocalMenuBuilderInterface
|
||||
$this->translator = $translator;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function buildMenu($menuId, MenuItem $menu, array $parameters)
|
||||
{
|
||||
if ($this->authorizationChecker->isGranted(ThirdPartyVoter::SHOW)) {
|
||||
$menu
|
||||
->addChild(
|
||||
$this->translator->trans('Third parties'),
|
||||
$this->translator->trans('Third parties'),
|
||||
[
|
||||
'route' => 'chill_3party_3party_index',
|
||||
'route' => 'chill_crud_3party_3party_index',
|
||||
])
|
||||
->setExtras([
|
||||
'order' => 112
|
||||
|
Reference in New Issue
Block a user