1 | <?php |
||
35 | class Patron extends Plugin |
||
36 | { |
||
37 | use LoggerTrait; |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | protected static function getLogFileName(): string |
||
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | 18 | public function init() |
|
128 | |||
129 | /** |
||
130 | * @inheritdoc |
||
131 | */ |
||
132 | public function getCpNavItem() |
||
150 | |||
151 | /** |
||
152 | * @inheritdoc |
||
153 | * @return SettingsModel |
||
154 | */ |
||
155 | 18 | public function createSettingsModel() |
|
159 | |||
160 | /** |
||
161 | * @inheritdoc |
||
162 | * @throws \yii\base\ExitException |
||
163 | */ |
||
164 | public function getSettingsResponse() |
||
172 | |||
173 | /******************************************* |
||
174 | * SERVICES |
||
175 | *******************************************/ |
||
176 | |||
177 | /** |
||
178 | * @noinspection PhpDocMissingThrowsInspection |
||
179 | * @return services\Providers |
||
180 | */ |
||
181 | 3 | public function getProviders(): services\Providers |
|
182 | { |
||
183 | /** @noinspection PhpUnhandledExceptionInspection */ |
||
184 | /** @noinspection PhpIncompatibleReturnTypeInspection */ |
||
185 | 3 | return $this->get('providers'); |
|
186 | } |
||
187 | |||
188 | /** |
||
189 | * @noinspection PhpDocMissingThrowsInspection |
||
190 | * @return services\ProviderSettings |
||
191 | */ |
||
192 | public function getProviderSettings(): services\ProviderSettings |
||
198 | |||
199 | /** |
||
200 | * @noinspection PhpDocMissingThrowsInspection |
||
201 | * @return services\ProviderLocks |
||
202 | */ |
||
203 | 3 | public function getProviderLocks(): services\ProviderLocks |
|
209 | |||
210 | /** |
||
211 | * @noinspection PhpDocMissingThrowsInspection |
||
212 | * @return services\Tokens |
||
213 | */ |
||
214 | 3 | public function getTokens(): services\Tokens |
|
215 | { |
||
216 | /** @noinspection PhpUnhandledExceptionInspection */ |
||
217 | /** @noinspection PhpIncompatibleReturnTypeInspection */ |
||
218 | 3 | return $this->get('tokens'); |
|
219 | } |
||
220 | |||
221 | /** |
||
222 | * @noinspection PhpDocMissingThrowsInspection |
||
223 | * @return services\ManageProviders |
||
224 | */ |
||
225 | 3 | public function manageProviders(): services\ManageProviders |
|
226 | { |
||
227 | /** @noinspection PhpUnhandledExceptionInspection */ |
||
228 | /** @noinspection PhpIncompatibleReturnTypeInspection */ |
||
229 | 3 | return $this->get('manageProviders'); |
|
230 | } |
||
231 | |||
232 | /** |
||
233 | * @noinspection PhpDocMissingThrowsInspection |
||
234 | * @return services\ManageTokens |
||
235 | */ |
||
236 | 3 | public function manageTokens(): services\ManageTokens |
|
237 | { |
||
238 | /** @noinspection PhpUnhandledExceptionInspection */ |
||
239 | /** @noinspection PhpIncompatibleReturnTypeInspection */ |
||
240 | 3 | return $this->get('manageTokens'); |
|
241 | } |
||
242 | |||
243 | /** |
||
244 | * @noinspection PhpDocMissingThrowsInspection |
||
245 | * @return services\Session |
||
246 | */ |
||
247 | 3 | public function getSession(): services\Session |
|
253 | |||
254 | |||
255 | /******************************************* |
||
256 | * MODULES |
||
257 | *******************************************/ |
||
258 | |||
259 | /** |
||
260 | * @noinspection PhpDocMissingThrowsInspection |
||
261 | * @return cp\Cp |
||
262 | */ |
||
263 | public function getCp(): cp\Cp |
||
269 | |||
270 | /******************************************* |
||
271 | * EVENTS |
||
272 | *******************************************/ |
||
273 | |||
274 | /** |
||
275 | * @param RegisterUrlRulesEvent $event |
||
276 | */ |
||
277 | public static function onRegisterCpUrlRules(RegisterUrlRulesEvent $event) |
||
315 | } |
||
316 |