Property | Type | Description | |
---|---|---|---|
$inspector |
Method | Description | |
---|---|---|
__construct ( Sulu\Component\CustomUrl\Generator\GeneratorInterface $generator, Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, Sulu\Component\DocumentManager\PathBuilder $pathBuilder, |
||
getSubscribedEvents ( ) | ||
handleHydrate ( Sulu\Component\DocumentManager\Event\HydrateEvent $event ) | Set routes to custom-url. | |
handlePersist ( Sulu\Component\DocumentManager\Event\PersistEvent $event ) | Creates routes for persisted custom-url. | |
handleRemove ( Sulu\Component\DocumentManager\Event\RemoveEvent $event ) | Removes the routes for the given document. |
Method | Description | |
---|---|---|
createRoute ( string $domain, Sulu\Component\CustomUrl\Document\CustomUrlBehavior $document, |
Create route-document for given domain. | |
findOrCreateRoute ( string $path, string $locale, Sulu\Component\CustomUrl\Document\CustomUrlBehavior $document, string $route ) : |
Find or create route-document for given path. | |
findReferrer ( $document, $webspaceKey ) : array | Returns all route-document which referees given document. | |
getRoutesPath ( string $webspaceKey ) : string | Return routes path for custom-url in given webspace. |
public __construct ( Sulu\Component\CustomUrl\Generator\GeneratorInterface $generator, Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, Sulu\Component\DocumentManager\PathBuilder $pathBuilder, |
||
$generator | Sulu\Component\CustomUrl\Generator\GeneratorInterface | |
$documentManager | Sulu\Component\DocumentManager\DocumentManagerInterface | |
$pathBuilder | Sulu\Component\DocumentManager\PathBuilder | |
$inspector | ||
$webspaceManager | Sulu\Component\Webspace\Manager\WebspaceManagerInterface |
protected createRoute ( string $domain, Sulu\Component\CustomUrl\Document\CustomUrlBehavior $document, |
||
$domain | string | |
$document | Sulu\Component\CustomUrl\Document\CustomUrlBehavior | |
$locale | ||
$persistedLocale | string | |
$routesPath | string | |
return |
protected findOrCreateRoute ( string $path, string $locale, Sulu\Component\CustomUrl\Document\CustomUrlBehavior $document, string $route ) : |
||
$path | string | |
$locale | string | |
$document | Sulu\Component\CustomUrl\Document\CustomUrlBehavior | |
$route | string | |
return |
protected findReferrer ( $document, $webspaceKey ) : array | ||
$document | ||
$webspaceKey | ||
return | array |
protected getRoutesPath ( string $webspaceKey ) : string | ||
$webspaceKey | string | |
return | string |
public handleHydrate ( Sulu\Component\DocumentManager\Event\HydrateEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\HydrateEvent |
public handlePersist ( Sulu\Component\DocumentManager\Event\PersistEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\PersistEvent |
public handleRemove ( Sulu\Component\DocumentManager\Event\RemoveEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\RemoveEvent |