1 | <?php |
||
12 | abstract class SiteAccessConfigResolver implements VersatileScopeInterface, SiteAccessAware |
||
13 | { |
||
14 | /** @var \eZ\Publish\Core\MVC\Symfony\SiteAccess\SiteAccessProviderInterface */ |
||
15 | protected $siteAccessProvider; |
||
16 | |||
17 | /** @var \eZ\Publish\Core\MVC\Symfony\SiteAccess */ |
||
18 | protected $currentSiteAccess; |
||
19 | |||
20 | /** @var string */ |
||
21 | protected $defaultScope; |
||
22 | |||
23 | /** @var string */ |
||
24 | protected $defaultNamespace; |
||
25 | |||
26 | public function __construct( |
||
33 | |||
34 | public function hasParameter(string $paramName, ?string $namespace = null, ?string $scope = null): bool |
||
48 | |||
49 | public function getParameter(string $paramName, ?string $namespace = null, ?string $scope = null) |
||
64 | |||
65 | public function getDefaultNamespace(): string |
||
69 | |||
70 | public function setDefaultNamespace($defaultNamespace): void |
||
74 | |||
75 | public function getDefaultScope(): string |
||
79 | |||
80 | public function setDefaultScope(string $scope): void |
||
84 | |||
85 | public function setSiteAccess(SiteAccess $siteAccess = null): void |
||
89 | |||
90 | protected function isSiteAccessScope(string $scope): bool |
||
94 | |||
95 | /** |
||
96 | * Returns true if current config provider supports given Site Access. |
||
97 | */ |
||
98 | protected function isSiteAccessSupported(SiteAccess $siteAccess): bool |
||
102 | |||
103 | protected function resolveScopeRelativeParamName(string $paramName, ?string $namespace = null, ?string $scope = null): string |
||
107 | |||
108 | protected function resolveNamespaceAndScope(?string $namespace = null, ?string $scope = null): array |
||
112 | |||
113 | protected function getScopeRelativeParamName(string $paramName, string $namespace, string $scope): string |
||
117 | |||
118 | abstract protected function doHasParameter(SiteAccess $siteAccess, string $paramName, string $namespace): bool; |
||
119 | |||
120 | abstract protected function doGetParameter(SiteAccess $siteAccess, string $paramName, string $namespace); |
||
121 | } |
This check looks for function calls that miss required arguments.