|
6 | 6 | namespace App\Providers;
|
7 | 7 |
|
8 | 8 | use App\Hashing\OsuHashManager;
|
9 |
| -use App\Libraries\AssetsManifest; |
10 |
| -use App\Libraries\ChatFilters; |
11 |
| -use App\Libraries\CleanHTML; |
12 |
| -use App\Libraries\Countries; |
13 |
| -use App\Libraries\Groups; |
14 |
| -use App\Libraries\Ip2Asn; |
15 |
| -use App\Libraries\LayoutCache; |
16 |
| -use App\Libraries\LocalCacheManager; |
17 |
| -use App\Libraries\Medals; |
18 |
| -use App\Libraries\Mods; |
19 | 9 | use App\Libraries\MorphMap;
|
20 |
| -use App\Libraries\OsuAuthorize; |
21 | 10 | use App\Libraries\OsuCookieJar;
|
22 | 11 | use App\Libraries\OsuMessageSelector;
|
23 | 12 | use App\Libraries\RateLimiter;
|
24 |
| -use App\Libraries\RouteSection; |
25 |
| -use App\Libraries\Smilies; |
26 |
| -use App\Libraries\User\ScorePins; |
| 13 | +use App\Singletons; |
27 | 14 | use Datadog;
|
28 | 15 | use Illuminate\Database\Eloquent\Relations\Relation;
|
29 | 16 | use Illuminate\Http\Request;
|
|
39 | 26 | class AppServiceProvider extends ServiceProvider
|
40 | 27 | {
|
41 | 28 | const LOCAL_CACHE_SINGLETONS = [
|
42 |
| - 'chat-filters' => ChatFilters::class, |
43 |
| - 'countries' => Countries::class, |
44 |
| - 'groups' => Groups::class, |
45 |
| - 'layout-cache' => LayoutCache::class, |
46 |
| - 'medals' => Medals::class, |
47 |
| - 'smilies' => Smilies::class, |
| 29 | + 'chat-filters' => Singletons\ChatFilters::class, |
| 30 | + 'countries' => Singletons\Countries::class, |
| 31 | + 'groups' => Singletons\Groups::class, |
| 32 | + 'layout-cache' => Singletons\LayoutCache::class, |
| 33 | + 'medals' => Singletons\Medals::class, |
| 34 | + 'smilies' => Singletons\Smilies::class, |
48 | 35 | ];
|
49 | 36 |
|
50 | 37 | const SINGLETONS = [
|
51 |
| - 'OsuAuthorize' => OsuAuthorize::class, |
52 |
| - 'assets-manifest' => AssetsManifest::class, |
53 |
| - 'clean-html' => CleanHTML::class, |
54 |
| - 'ip2asn' => Ip2Asn::class, |
55 |
| - 'local-cache-manager' => LocalCacheManager::class, |
56 |
| - 'mods' => Mods::class, |
57 |
| - 'route-section' => RouteSection::class, |
58 |
| - 'score-pins' => ScorePins::class, |
| 38 | + 'OsuAuthorize' => Singletons\OsuAuthorize::class, |
| 39 | + 'assets-manifest' => Singletons\AssetsManifest::class, |
| 40 | + 'clean-html' => Singletons\CleanHTML::class, |
| 41 | + 'ip2asn' => Singletons\Ip2Asn::class, |
| 42 | + 'local-cache-manager' => Singletons\LocalCacheManager::class, |
| 43 | + 'mods' => Singletons\Mods::class, |
| 44 | + 'route-section' => Singletons\RouteSection::class, |
| 45 | + 'score-pins' => Singletons\UserScorePins::class, |
59 | 46 | ];
|
60 | 47 |
|
61 | 48 | /**
|
|
0 commit comments