PHP 클래스 Nelmio\SecurityBundle\EventListener\ExternalRedirectListener

파일 보기 프로젝트 열기: nelmio/NelmioSecurityBundle 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( boolean $abort = true, string $override = null, string $forwardAs = null, mixed $targetValidator = null, Psr\Log\LoggerInterface $logger = null, Symfony\Component\Routing\Generator\UrlGeneratorInterface $generator = null )
isExternalRedirect ( $source, $target )
onKernelResponse ( FilterResponseEvent $e )

메소드 상세

__construct() 공개 메소드

public __construct ( boolean $abort = true, string $override = null, string $forwardAs = null, mixed $targetValidator = null, Psr\Log\LoggerInterface $logger = null, Symfony\Component\Routing\Generator\UrlGeneratorInterface $generator = null )
$abort boolean If true, the offending redirects are turned into 403 responses, can't be combined with $override
$override string Absolute path, complete URL or route name that must be used instead of the offending redirect's url
$forwardAs string Name of the route-/query string parameter the blocked url will be passed to destination location
$targetValidator mixed array of hosts to be whitelisted, or regex that matches whitelisted hosts, or implementation of TargetValidator
$logger Psr\Log\LoggerInterface A logger, if it's present, detected offenses are logged at the warning level
$generator Symfony\Component\Routing\Generator\UrlGeneratorInterface Router or equivalent that can generate a route, only if override is a route name

isExternalRedirect() 공개 메소드

public isExternalRedirect ( $source, $target )

onKernelResponse() 공개 메소드

public onKernelResponse ( FilterResponseEvent $e )
$e Symfony\Component\HttpKernel\Event\FilterResponseEvent