PHP Класс Sulu\Bundle\AdminBundle\Controller\AdminController

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, AdminPool $adminPool, JsConfigPool $jsConfigPool, JMS\Serializer\SerializerInterface $serializer, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $engine, Sulu\Component\Localization\Manager\LocalizationManagerInterface $localizationManager, $environment, $adminName, array $locales, $suluVersion, $translatedLocales, $translations, $fallbackLocale )
bundlesAction ( ) : Symfony\Component\HttpFoundation\JsonResponse Returns a array of all bundles.
configAction ( ) : Symfony\Component\HttpFoundation\JsonResponse Returns config for admin.
contextsAction ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Returns contexts of admin.
indexAction ( ) : Response Renders admin ui.

Приватные методы

Метод Описание
addContext ( array &$mappedContexts, string $system, string $section, mixed $context, mixed $permissionTypes ) Will transform the different representations of permission types to the same representation and adds it to the passed array.

Описание методов

__construct() публичный Метод

public __construct ( Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, AdminPool $adminPool, JsConfigPool $jsConfigPool, JMS\Serializer\SerializerInterface $serializer, Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $engine, Sulu\Component\Localization\Manager\LocalizationManagerInterface $localizationManager, $environment, $adminName, array $locales, $suluVersion, $translatedLocales, $translations, $fallbackLocale )
$authorizationChecker Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
$urlGenerator Symfony\Component\Routing\Generator\UrlGeneratorInterface
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$adminPool Sulu\Bundle\AdminBundle\Admin\AdminPool
$jsConfigPool Sulu\Bundle\AdminBundle\Admin\JsConfigPool
$serializer JMS\Serializer\SerializerInterface
$engine Symfony\Bundle\FrameworkBundle\Templating\EngineInterface
$localizationManager Sulu\Component\Localization\Manager\LocalizationManagerInterface
$locales array

bundlesAction() публичный Метод

Returns a array of all bundles.
public bundlesAction ( ) : Symfony\Component\HttpFoundation\JsonResponse
Результат Symfony\Component\HttpFoundation\JsonResponse

configAction() публичный Метод

Returns config for admin.
public configAction ( ) : Symfony\Component\HttpFoundation\JsonResponse
Результат Symfony\Component\HttpFoundation\JsonResponse

contextsAction() публичный Метод

Returns contexts of admin.
public contextsAction ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

indexAction() публичный Метод

Renders admin ui.
public indexAction ( ) : Response
Результат Symfony\Component\HttpFoundation\Response