Skip to content

Commit

Permalink
Revert some of my changes
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Nov 27, 2023
1 parent cdae8fa commit 6a60c55
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/CP/Utilities/UtilityRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ public function __construct()

public function boot()
{
if ($this->utilities->isNotEmpty()) {
return;
}

CoreUtilities::boot();

foreach ($this->extensions as $callback) {
Expand Down Expand Up @@ -52,8 +48,6 @@ public function register($utility)

public function all()
{
$this->boot();

return $this->utilities;
}

Expand All @@ -76,6 +70,8 @@ public function findBySlug($slug)

public function routes()
{
$this->boot();

Route::namespace('\\')->prefix('utilities')->name('utilities.')->group(function () {
$this->all()->each(function ($utility) {
if ($utility->action()) {
Expand Down

0 comments on commit 6a60c55

Please sign in to comment.