From 8357bc537a3c7449daa6d62979cb2a6bc1bc20b3 Mon Sep 17 00:00:00 2001 From: Aleksei Lebedev <1329824+LastDragon-ru@users.noreply.github.com> Date: Mon, 1 Jan 2024 14:27:07 +0400 Subject: [PATCH] refactor(core)!: Removed deprecated `Helper::callAfterBoot()`. --- packages/core/src/Provider/Helper.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/packages/core/src/Provider/Helper.php b/packages/core/src/Provider/Helper.php index 32b95770d..38b62dc13 100644 --- a/packages/core/src/Provider/Helper.php +++ b/packages/core/src/Provider/Helper.php @@ -2,8 +2,6 @@ namespace LastDragon_ru\LaraASP\Core\Provider; -use Closure; -use Illuminate\Foundation\Application; use Illuminate\Support\ServiceProvider; use ReflectionClass; @@ -28,17 +26,4 @@ protected function getPath(string $path): string { return $path; } - - /** - * @deprecated 5.2.0 Not used anymore and will be removed soon. - * - * @param Closure(mixed...): mixed $callback - */ - protected function callAfterBoot(Closure $callback): void { - if ($this->app instanceof Application && $this->app->isBooted()) { - $this->app->call($callback); - } else { - $this->booted($callback); - } - } }