|
3 | 3 | return [
|
4 | 4 | /*
|
5 | 5 | |--------------------------------------------------------------------------
|
6 |
| - | default |
| 6 | + | Pipeline |
7 | 7 | |--------------------------------------------------------------------------
|
8 | 8 | |
|
9 |
| - | The repository to use for establishing a feature's on/off state. |
| 9 | + | The pipeline for the feature to travel through. |
10 | 10 | |
|
11 | 11 | */
|
12 | 12 |
|
13 |
| - 'default' => 'config', |
| 13 | + 'pipeline' => ['in_memory'], |
14 | 14 |
|
15 | 15 | /*
|
16 | 16 | |--------------------------------------------------------------------------
|
17 |
| - | Config Feature Switches |
| 17 | + | Gateways |
18 | 18 | |--------------------------------------------------------------------------
|
19 | 19 | |
|
20 |
| - | This is a set of features to load into the config features repository. |
| 20 | + | Configures the different gateway options |
21 | 21 | |
|
22 | 22 | */
|
23 | 23 |
|
24 |
| - 'feature' => [ |
25 |
| - 'roleplay' => true, |
26 |
| - 'roleplay-only-restricted' => false, |
27 |
| - 'cache' => true, |
28 |
| - 'subdivision' => false, |
29 |
| - ], |
30 |
| - |
31 |
| - /* |
32 |
| - |-------------------------------------------------------------------------- |
33 |
| - | Repositories |
34 |
| - |-------------------------------------------------------------------------- |
35 |
| - | |
36 |
| - | Configures the different repository options |
37 |
| - | |
38 |
| - */ |
39 |
| - |
40 |
| - 'repositories' => [ |
| 24 | + 'gateways' => [ |
| 25 | + 'in_memory' => [ |
| 26 | + 'file' => env('FEATURE_FLAG_IN_MEMORY_FILE', '.features.php'), |
| 27 | + 'driver' => 'in_memory', |
| 28 | + ], |
41 | 29 | 'database' => [
|
42 |
| - 'table' => 'features', |
| 30 | + 'driver' => 'database', |
| 31 | + 'cache' => [ |
| 32 | + 'ttl' => 600, |
| 33 | + ], |
| 34 | + 'connection' => env('FEATURE_FLAG_DATABASE_CONNECTION'), |
| 35 | + 'table' => env('FEATURE_FLAG_DATABASE_TABLE', 'features'), |
43 | 36 | ],
|
44 |
| - 'config' => [ |
45 |
| - 'key' => 'features.feature', |
| 37 | + 'gate' => [ |
| 38 | + 'driver' => 'gate', |
| 39 | + 'gate' => env('FEATURE_FLAG_GATE_GATE', 'feature'), |
| 40 | + 'guard' => env('FEATURE_FLAG_GATE_GUARD'), |
| 41 | + 'cache' => [ |
| 42 | + 'ttl' => 600, |
| 43 | + ], |
46 | 44 | ],
|
47 | 45 | 'redis' => [
|
48 |
| - 'prefix' => 'features', |
49 |
| - 'connection' => 'default', |
50 |
| - ], |
51 |
| - 'chain' => [ |
52 |
| - 'drivers' => [ |
53 |
| - 'config', |
54 |
| - 'redis', |
55 |
| - 'database', |
56 |
| - ], |
57 |
| - 'store' => 'database', |
58 |
| - 'update_on_resolve' => true, |
| 46 | + 'driver' => 'redis', |
| 47 | + 'prefix' => env('FEATURE_FLAG_REDIS_PREFIX', 'features'), |
| 48 | + 'connection' => env('FEATURE_FLAG_REDIS_CONNECTION', 'default'), |
59 | 49 | ],
|
60 | 50 | ],
|
61 | 51 | ];
|
0 commit comments