Skip to content

Commit

Permalink
refactor(core)!: Removed deprecated Helper::callAfterBoot().
Browse files Browse the repository at this point in the history
  • Loading branch information
LastDragon-ru committed Jan 1, 2024
1 parent cfa1db7 commit 8357bc5
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/core/src/Provider/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace LastDragon_ru\LaraASP\Core\Provider;

use Closure;
use Illuminate\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use ReflectionClass;

Expand All @@ -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);
}
}
}

0 comments on commit 8357bc5

Please sign in to comment.