Skip to content

Commit 15dd7bd

Browse files
authored
refactor(core): call invokable classes with invoke (#799)
1 parent 42262fa commit 15dd7bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Tempest/Core/src/Kernel.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,21 +118,21 @@ public function registerShutdownFunction(): self
118118

119119
public function loadDiscoveryLocations(): self
120120
{
121-
($this->container->get(LoadDiscoveryLocations::class))();
121+
$this->container->invoke(LoadDiscoveryLocations::class);
122122

123123
return $this;
124124
}
125125

126126
public function loadDiscovery(): self
127127
{
128-
($this->container->get(LoadDiscoveryClasses::class))();
128+
$this->container->invoke(LoadDiscoveryClasses::class);
129129

130130
return $this;
131131
}
132132

133133
public function loadConfig(): self
134134
{
135-
$this->container->get(LoadConfig::class)();
135+
$this->container->invoke(LoadConfig::class);
136136

137137
return $this;
138138
}
@@ -160,7 +160,7 @@ public function registerErrorHandler(): self
160160

161161
public function finishDeferredTasks(): self
162162
{
163-
($this->container->get(FinishDeferredTasks::class))();
163+
$this->container->invoke(FinishDeferredTasks::class);
164164

165165
return $this;
166166
}

0 commit comments

Comments
 (0)