1 | <?php |
||
16 | class ConfigProvider implements RedirectorProvider |
||
17 | { |
||
18 | /* ----------------------------------------------------------------- |
||
19 | | Properties |
||
20 | | ----------------------------------------------------------------- |
||
21 | */ |
||
22 | |||
23 | /** @var \Illuminate\Contracts\Config\Repository */ |
||
24 | protected $config; |
||
25 | |||
26 | /* ----------------------------------------------------------------- |
||
27 | | Constructor |
||
28 | | ----------------------------------------------------------------- |
||
29 | */ |
||
30 | |||
31 | /** |
||
32 | * ConfigProvider constructor. |
||
33 | * |
||
34 | * @param \Illuminate\Contracts\Config\Repository $config |
||
35 | */ |
||
36 | 108 | public function __construct(Repository $config) |
|
40 | |||
41 | /* ----------------------------------------------------------------- |
||
42 | | Main Methods |
||
43 | | ----------------------------------------------------------------- |
||
44 | */ |
||
45 | |||
46 | /** |
||
47 | * Get the status codes. |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | 78 | public function statusCodes(): array |
|
55 | |||
56 | /** |
||
57 | * Get redirections for the given request. |
||
58 | * |
||
59 | * @param \Illuminate\Http\Request|mixed $request |
||
60 | * |
||
61 | * @return \Arcanedev\MissingUrlsRedirector\Entities\Redirection[]|array |
||
62 | */ |
||
63 | 54 | public function redirectionsFor($request): array |
|
67 | } |
||
68 |