|
50 | 50 | array_merge($_admin_js, |
51 | 51 | ['project/plugins/admin/assets/dist/js/admin-vendor-build.min.js'])); |
52 | 52 |
|
53 | | -flextype()->container()['DashboardController'] = static function () { |
54 | | - return new DashboardController(); |
55 | | -}; |
56 | | - |
57 | | -flextype()->container()['SettingsController'] = static function () { |
58 | | - return new SettingsController(); |
59 | | -}; |
60 | | - |
61 | | -flextype()->container()['PluginsController'] = static function () { |
62 | | - return new PluginsController(); |
63 | | -}; |
64 | | - |
65 | | -flextype()->container()['EntriesController'] = static function () { |
66 | | - return new EntriesController(); |
67 | | -}; |
68 | | - |
69 | | -flextype()->container()['ToolsController'] = static function () { |
70 | | - return new ToolsController(); |
71 | | -}; |
72 | | - |
73 | | -flextype()->container()['ApiController'] = static function () { |
74 | | - return new ApiController(); |
75 | | -}; |
76 | | - |
77 | | -flextype()->container()['ApiEntriesController'] = static function () { |
78 | | - return new ApiEntriesController(); |
79 | | -}; |
80 | | - |
81 | | -flextype()->container()['ApiFilesController'] = static function () { |
82 | | - return new ApiFilesController(); |
83 | | -}; |
84 | | - |
85 | | -flextype()->container()['ApiFoldersController'] = static function () { |
86 | | - return new ApiFoldersController(); |
87 | | -}; |
88 | | - |
89 | | -flextype()->container()['ApiImagesController'] = static function () { |
90 | | - return new ApiImagesController(); |
91 | | -}; |
92 | | - |
93 | | -flextype()->container()['ApiAccessController'] = static function () { |
94 | | - return new ApiAccessController(); |
95 | | -}; |
96 | | - |
97 | | -flextype()->container()['ApiRegistryController'] = static function () { |
98 | | - return new ApiRegistryController(); |
99 | | -}; |
| 53 | +flextype()->container()['DashboardController'] = fn() => new DashboardController(); |
| 54 | +flextype()->container()['SettingsController'] = fn() => new SettingsController(); |
| 55 | +flextype()->container()['PluginsController'] = fn() => new PluginsController(); |
| 56 | +flextype()->container()['EntriesController'] = fn() => new EntriesController(); |
| 57 | +flextype()->container()['ToolsController'] = fn() => new ToolsController(); |
| 58 | +flextype()->container()['ApiController'] = fn() => new ApiController(); |
| 59 | +flextype()->container()['ApiEntriesController'] = fn() => new ApiEntriesController(); |
| 60 | +flextype()->container()['ApiFilesController'] = fn() => new ApiFilesController(); |
| 61 | +flextype()->container()['ApiFoldersController'] = fn() => new ApiFoldersController(); |
| 62 | +flextype()->container()['ApiImagesController'] = fn() => new ApiImagesController(); |
| 63 | +flextype()->container()['ApiAccessController'] = fn() => new ApiAccessController(); |
| 64 | +flextype()->container()['ApiRegistryController'] = fn() => new ApiRegistryController(); |
0 commit comments