vendor/ibexa/core/src/contracts/Repository/Decorator/URLAliasServiceDecorator.php line 74

Open in your IDE?
  1. <?php
  2. /**
  3.  * @copyright Copyright (C) Ibexa AS. All rights reserved.
  4.  * @license For full copyright and license information view LICENSE file distributed with this source code.
  5.  */
  6. declare(strict_types=1);
  7. namespace Ibexa\Contracts\Core\Repository\Decorator;
  8. use Ibexa\Contracts\Core\Repository\URLAliasService;
  9. use Ibexa\Contracts\Core\Repository\Values\Content\Location;
  10. use Ibexa\Contracts\Core\Repository\Values\Content\URLAlias;
  11. abstract class URLAliasServiceDecorator implements URLAliasService
  12. {
  13.     /** @var \Ibexa\Contracts\Core\Repository\URLAliasService */
  14.     protected $innerService;
  15.     public function __construct(URLAliasService $innerService)
  16.     {
  17.         $this->innerService $innerService;
  18.     }
  19.     public function createUrlAlias(
  20.         Location $location,
  21.         string $path,
  22.         string $languageCode,
  23.         bool $forwarding false,
  24.         bool $alwaysAvailable false
  25.     ): URLAlias {
  26.         return $this->innerService->createUrlAlias($location$path$languageCode$forwarding$alwaysAvailable);
  27.     }
  28.     public function createGlobalUrlAlias(
  29.         string $resource,
  30.         string $path,
  31.         string $languageCode,
  32.         bool $forwarding false,
  33.         bool $alwaysAvailable false
  34.     ): URLAlias {
  35.         return $this->innerService->createGlobalUrlAlias($resource$path$languageCode$forwarding$alwaysAvailable);
  36.     }
  37.     public function listLocationAliases(
  38.         Location $location,
  39.         bool $custom true,
  40.         ?string $languageCode null,
  41.         ?bool $showAllTranslations null,
  42.         ?array $prioritizedLanguages null
  43.     ): iterable {
  44.         return $this->innerService->listLocationAliases(
  45.             $location,
  46.             $custom,
  47.             $languageCode,
  48.             $showAllTranslations,
  49.             $prioritizedLanguages
  50.         );
  51.     }
  52.     public function listGlobalAliases(
  53.         ?string $languageCode null,
  54.         int $offset 0,
  55.         int $limit = -1
  56.     ): iterable {
  57.         return $this->innerService->listGlobalAliases($languageCode$offset$limit);
  58.     }
  59.     public function removeAliases(array $aliasList): void
  60.     {
  61.         $this->innerService->removeAliases($aliasList);
  62.     }
  63.     public function lookup(
  64.         string $url,
  65.         ?string $languageCode null
  66.     ): URLAlias {
  67.         return $this->innerService->lookup($url$languageCode);
  68.     }
  69.     public function reverseLookup(
  70.         Location $location,
  71.         ?string $languageCode null,
  72.         ?bool $showAllTranslations null,
  73.         ?array $prioritizedLanguages null
  74.     ): URLAlias {
  75.         return $this->innerService->reverseLookup(
  76.             $location,
  77.             $languageCode,
  78.             $showAllTranslations,
  79.             $prioritizedLanguages
  80.         );
  81.     }
  82.     public function load(string $id): URLAlias
  83.     {
  84.         return $this->innerService->load($id);
  85.     }
  86.     public function refreshSystemUrlAliasesForLocation(Location $location): void
  87.     {
  88.         $this->innerService->refreshSystemUrlAliasesForLocation($location);
  89.     }
  90.     public function deleteCorruptedUrlAliases(): int
  91.     {
  92.         return $this->innerService->deleteCorruptedUrlAliases();
  93.     }
  94. }
  95. class_alias(URLAliasServiceDecorator::class, 'eZ\Publish\SPI\Repository\Decorator\URLAliasServiceDecorator');