Skip to content

Commit d028db1

Browse files
committed
Remove lazy evaluation code
1 parent a9ebc32 commit d028db1

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/Concerns/InteractsWithConfiguration.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use GuzzleHttp\HandlerStack;
66
use Illuminate\Support\Str;
7-
use Jenky\Hermes\LazyEvaluation;
87

98
trait InteractsWithConfiguration
109
{
@@ -146,24 +145,11 @@ protected function parseMiddleware($key, $value)
146145
$name = is_numeric($key) ? '' : $key;
147146

148147
if (is_callable($value)) {
149-
// $value = $this->isLazyEvaluable($value) ? $this->app->call($value) : $value;
150-
$value = $this->isLazyEvaluable($value) ? $value() : $value;
151-
152148
return [$value, $name];
153149
}
154150

155151
[$class, $arguments] = $this->parseClassAndArguments($key, $value);
156152

157153
return [$this->app->make($class, $arguments), $class];
158154
}
159-
160-
/**
161-
* Determine if the callable is lazy evaluated.
162-
*
163-
* @return bool
164-
*/
165-
protected function isLazyEvaluable(callable $callable)
166-
{
167-
return $callable instanceof LazyEvaluation;
168-
}
169155
}

0 commit comments

Comments
 (0)