1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace eZ\Publish\Core\Event; |
6
|
|
|
|
7
|
|
|
use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
8
|
|
|
use eZ\Publish\API\Repository\URLAliasService as URLAliasServiceInterface; |
9
|
|
|
use eZ\Publish\API\Repository\Values\Content\Location; |
10
|
|
|
|
11
|
|
|
class URLAliasService implements URLAliasServiceInterface |
12
|
|
|
{ |
13
|
|
|
/** @var Symfony\Component\EventDispatcher\EventDispatcherInterface */ |
14
|
|
|
protected $eventDispatcher; |
15
|
|
|
|
16
|
|
|
public function __construct(URLAliasServiceInterface $innerService, EventDispatcherInterface $eventDispatcher) |
|
|
|
|
17
|
|
|
{ |
18
|
|
|
parent::__construct($innerRepository); |
|
|
|
|
19
|
|
|
|
20
|
|
|
$this->eventDispatcher = $eventDispatcher; |
|
|
|
|
21
|
|
|
} |
22
|
|
|
|
23
|
|
|
public function createUrlAlias(Location $location, $path, $languageCode, $forwarding = false, $alwaysAvailable = false) |
24
|
|
|
{ |
25
|
|
|
parent::createUrlAlias($location, $path, $languageCode, $forwarding, $alwaysAvailable); |
26
|
|
|
} |
27
|
|
|
|
28
|
|
|
public function createGlobalUrlAlias($resource, $path, $languageCode, $forwarding = false, $alwaysAvailable = false) |
29
|
|
|
{ |
30
|
|
|
parent::createGlobalUrlAlias($resource, $path, $languageCode, $forwarding, $alwaysAvailable); |
31
|
|
|
} |
32
|
|
|
|
33
|
|
|
public function listLocationAliases(Location $location, $custom = true, $languageCode = null) |
34
|
|
|
{ |
35
|
|
|
parent::listLocationAliases($location, $custom, $languageCode); |
36
|
|
|
} |
37
|
|
|
|
38
|
|
|
public function listGlobalAliases($languageCode = null, $offset = 0, $limit = -1) |
39
|
|
|
{ |
40
|
|
|
parent::listGlobalAliases($languageCode, $offset, $limit); |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
public function removeAliases(array $aliasList) |
44
|
|
|
{ |
45
|
|
|
parent::removeAliases($aliasList); |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
public function lookup($url, $languageCode = null) |
49
|
|
|
{ |
50
|
|
|
parent::lookup($url, $languageCode); |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
public function reverseLookup(Location $location, $languageCode = null) |
54
|
|
|
{ |
55
|
|
|
parent::reverseLookup($location, $languageCode); |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
public function load($id) |
59
|
|
|
{ |
60
|
|
|
parent::load($id); |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
public function refreshSystemUrlAliasesForLocation(Location $location): void |
64
|
|
|
{ |
65
|
|
|
parent::refreshSystemUrlAliasesForLocation($location); |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
public function deleteCorruptedUrlAliases(): int |
69
|
|
|
{ |
70
|
|
|
return parent::deleteCorruptedUrlAliases(); |
71
|
|
|
} |
72
|
|
|
} |
73
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.