PHP Класс Sulu\Bundle\CustomUrlBundle\Request\CustomUrlRequestProcessor

Наследование: implements Sulu\Component\Webspace\Analyzer\Attributes\RequestProcessorInterface
Показать файл Открыть проект

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

Метод Описание
__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 )

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

Метод Описание
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.

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

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

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 process ( Request $request, RequestAttributes $requestAttributes )
$request Symfony\Component\HttpFoundation\Request
$requestAttributes Sulu\Component\Webspace\Analyzer\Attributes\RequestAttributes

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

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