1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Refactor usage init hook to remove unecessary

inject
This commit is contained in:
Bhaskar Singh 2023-04-27 19:32:05 +05:30
parent 3865f48d32
commit 7064f884aa

View file

@ -557,9 +557,8 @@ App::shutdown()
App::init()
->groups(['usage'])
->inject('utopia')
->action(function (App $utopia) {
if ($utopia::getEnv('_APP_USAGE_STATS', 'enabled') != 'enabled') {
->action(function () {
if (App::getEnv('_APP_USAGE_STATS', 'enabled') != 'enabled') {
throw new Exception(Exception::GENERAL_USAGE_DISABLED);
}
});