1 | <?php |
||
15 | class DomainConfiguration implements DomainConfigurationInterface |
||
16 | { |
||
17 | /** @var ContainerInterface */ |
||
18 | protected $container; |
||
19 | |||
20 | /** @var bool */ |
||
21 | protected $multiLanguage; |
||
22 | |||
23 | /** @var array */ |
||
24 | protected $requiredLocales; |
||
25 | |||
26 | /** @var string */ |
||
27 | protected $defaultLocale; |
||
28 | |||
29 | /** |
||
30 | * @param ContainerInterface|string $multilanguage |
||
31 | */ |
||
32 | public function __construct(/*ContainerInterface|string*/ $multilanguage, $defaultLocale = null, $requiredLocales = null) |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getHost() |
||
68 | |||
69 | /** |
||
70 | * @return array |
||
71 | */ |
||
72 | public function getHosts() |
||
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | public function getDefaultLocale() |
||
84 | |||
85 | /** |
||
86 | * @param string|null $host |
||
87 | * |
||
88 | * @return bool |
||
89 | */ |
||
90 | public function isMultiLanguage($host = null) |
||
94 | |||
95 | /** |
||
96 | * @param string|null $host |
||
97 | * |
||
98 | * @return array |
||
99 | */ |
||
100 | public function getFrontendLocales($host = null) |
||
104 | |||
105 | /** |
||
106 | * @param string|null $host |
||
107 | * |
||
108 | * @return array |
||
109 | */ |
||
110 | public function getBackendLocales($host = null) |
||
114 | |||
115 | /** |
||
116 | * @return bool |
||
117 | */ |
||
118 | public function isMultiDomainHost() |
||
122 | |||
123 | /** |
||
124 | * @param string|null $host |
||
125 | * |
||
126 | * @return null |
||
127 | */ |
||
128 | public function getRootNode($host = null) |
||
132 | |||
133 | /** |
||
134 | * @return array |
||
135 | */ |
||
136 | public function getExtraData() |
||
140 | |||
141 | /** |
||
142 | * @return array |
||
143 | */ |
||
144 | public function getLocalesExtraData() |
||
148 | |||
149 | /** |
||
150 | * @return null|\Symfony\Component\HttpFoundation\Request |
||
151 | */ |
||
152 | protected function getMasterRequest() |
||
159 | |||
160 | /** |
||
161 | * @return array |
||
162 | */ |
||
163 | public function getFullHostConfig() |
||
167 | |||
168 | /** |
||
169 | * @param string|null $host |
||
170 | * |
||
171 | * @return null |
||
172 | */ |
||
173 | public function getFullHost($host = null) |
||
177 | |||
178 | /** |
||
179 | * @param int $id |
||
180 | * |
||
181 | * @return null |
||
182 | */ |
||
183 | public function getFullHostById($id) |
||
187 | |||
188 | /** |
||
189 | * @return null |
||
190 | */ |
||
191 | public function getHostSwitched() |
||
195 | |||
196 | /** |
||
197 | * @param string|null $host |
||
198 | * |
||
199 | * @return null |
||
200 | */ |
||
201 | public function getHostBaseUrl($host = null) |
||
205 | |||
206 | } |
||
207 |
If you suppress an error, we recommend checking for the error condition explicitly: