PHP Класс Bolt\Controller\Backend\BackendBase

Автор: Carson Full ([email protected])
Наследование: extends Bolt\Controller\Base
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
before ( Request $request, Silex\Application $app, string $roleRoute = null ) : null | RedirectResponse | Symfony\Component\HttpFoundation\JsonResponse Middleware function to check whether a user is logged on.
connect ( Silex\Application $app )

Защищенные методы

Метод Описание
login ( ) : Login Returns the Login object.
password ( ) : Password Returns the Password object.
render ( $template, array $context = [], array $globals = [] )
setAuthenticationCookie ( Request $request, Response $response, string $token ) : Response Set the authentication cookie in the response.

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

Метод Описание
checkFirstUser ( Silex\Application $app, mixed $route ) : null | true | RedirectResponse Check and handle first user set up.
getRoutePermission ( string $route ) : string Temporary hack to get the permission name associated with the route.

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

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

Middleware function to check whether a user is logged on.
public before ( Request $request, Silex\Application $app, string $roleRoute = null ) : null | RedirectResponse | Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request The Symfony Request
$app Silex\Application The application/container
$roleRoute string An overriding value for the route name in permission checks
Результат null | Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\JsonResponse

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

public connect ( Silex\Application $app )
$app Silex\Application

login() защищенный Метод

Returns the Login object.
protected login ( ) : Login
Результат Bolt\AccessControl\Login

password() защищенный Метод

Returns the Password object.
protected password ( ) : Password
Результат Bolt\AccessControl\Password

render() защищенный Метод

protected render ( $template, array $context = [], array $globals = [] )
$context array
$globals array

setAuthenticationCookie() защищенный Метод

Set the authentication cookie in the response.
protected setAuthenticationCookie ( Request $request, Response $response, string $token ) : Response
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response
$token string
Результат Symfony\Component\HttpFoundation\Response