PHP Class Sulu\Bundle\CustomUrlBundle\Request\CustomUrlRequestProcessor

Inheritance: implements Sulu\Component\Webspace\Analyzer\Attributes\RequestProcessorInterface
显示文件 Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Component\CustomUrl\Manager\CustomUrlManagerInterface $customUrlManager, Sulu\Component\CustomUrl\Generator\GeneratorInterface $generator, Sulu\Component\Webspace\Manager\WebspaceManagerInterface $webspaceManager, $environment )
process ( Request $request, RequestAttributes $requestAttributes )
validate ( RequestAttributes $attributes )

Private Methods

Method Description
matchCustomUrl ( string $url, PortalInformation $portalInformation, Request $request ) : RequestAttributes | void Matches given url to portal-information.
parse ( string $locale ) : Localization Converts locale string to localization object.

Method Details

__construct() public method

public __construct ( Sulu\Component\CustomUrl\Manager\CustomUrlManagerInterface $customUrlManager, Sulu\Component\CustomUrl\Generator\GeneratorInterface $generator, Sulu\Component\Webspace\Manager\WebspaceManagerInterface $webspaceManager, $environment )
$customUrlManager Sulu\Component\CustomUrl\Manager\CustomUrlManagerInterface
$generator Sulu\Component\CustomUrl\Generator\GeneratorInterface
$webspaceManager Sulu\Component\Webspace\Manager\WebspaceManagerInterface

process() public method

public process ( Request $request, RequestAttributes $requestAttributes )
$request Symfony\Component\HttpFoundation\Request
$requestAttributes Sulu\Component\Webspace\Analyzer\Attributes\RequestAttributes

validate() public method

public validate ( RequestAttributes $attributes )
$attributes Sulu\Component\Webspace\Analyzer\Attributes\RequestAttributes