Skip to content

Commit

Permalink
refactor(core): call invokable classes with invoke (#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi authored Dec 2, 2024
1 parent 42262fa commit 15dd7bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Tempest/Core/src/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,21 @@ public function registerShutdownFunction(): self

public function loadDiscoveryLocations(): self
{
($this->container->get(LoadDiscoveryLocations::class))();
$this->container->invoke(LoadDiscoveryLocations::class);

return $this;
}

public function loadDiscovery(): self
{
($this->container->get(LoadDiscoveryClasses::class))();
$this->container->invoke(LoadDiscoveryClasses::class);

return $this;
}

public function loadConfig(): self
{
$this->container->get(LoadConfig::class)();
$this->container->invoke(LoadConfig::class);

return $this;
}
Expand Down Expand Up @@ -160,7 +160,7 @@ public function registerErrorHandler(): self

public function finishDeferredTasks(): self
{
($this->container->get(FinishDeferredTasks::class))();
$this->container->invoke(FinishDeferredTasks::class);

return $this;
}
Expand Down

0 comments on commit 15dd7bd

Please sign in to comment.