PHP 클래스 Symfony\Component\Security\Http\HttpUtils

저자: Fabien Potencier ([email protected])
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Routing\RouterInterface $router = null ) Constructor.
checkRequestPath ( Request $request, string $path ) : boolean Checks that a given path matches the Request.
createRedirectResponse ( Request $request, string $path, integer $status = 302 ) : Response Creates a redirect Response.
createRequest ( Request $request, string $path ) : Request Creates a Request.

비공개 메소드들

메소드 설명
generateUrl ( $route, $absolute = false )
resetLocale ( Request $request ) hack (don't have a better solution for now)

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Symfony\Component\Routing\RouterInterface $router = null )
$router Symfony\Component\Routing\RouterInterface An RouterInterface instance

checkRequestPath() 공개 메소드

Checks that a given path matches the Request.
public checkRequestPath ( Request $request, string $path ) : boolean
$request Symfony\Component\HttpFoundation\Request A Request instance
$path string A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo))
리턴 boolean true if the path is the same as the one from the Request, false otherwise

createRedirectResponse() 공개 메소드

Creates a redirect Response.
public createRedirectResponse ( Request $request, string $path, integer $status = 302 ) : Response
$request Symfony\Component\HttpFoundation\Request A Request instance
$path string A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo))
$status integer The status code
리턴 Response A RedirectResponse instance

createRequest() 공개 메소드

Creates a Request.
public createRequest ( Request $request, string $path ) : Request
$request Symfony\Component\HttpFoundation\Request The current Request instance
$path string A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo))
리턴 Symfony\Component\HttpFoundation\Request A Request instance