PHP 클래스 Bolt\Controller\Backend\BackendBase

저자: Carson Full ([email protected])
상속: extends Bolt\Controller\Base
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

공개 메소드들

메소드 설명
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