PHP Class Sulu\Bundle\AdminBundle\Controller\AdminController

Show file Open project: sulu/sulu

Public Methods

Method Description
__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.

Private Methods

Method Description
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.

Method Details

__construct() public method

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() public method

Returns a array of all bundles.
public bundlesAction ( ) : Symfony\Component\HttpFoundation\JsonResponse
return Symfony\Component\HttpFoundation\JsonResponse

configAction() public method

Returns config for admin.
public configAction ( ) : Symfony\Component\HttpFoundation\JsonResponse
return Symfony\Component\HttpFoundation\JsonResponse

contextsAction() public method

Returns contexts of admin.
public contextsAction ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\JsonResponse

indexAction() public method

Renders admin ui.
public indexAction ( ) : Response
return Symfony\Component\HttpFoundation\Response