The class Spiral\Core\InterceptorPipeline has been deprecated: use {@see \Spiral\Interceptors\Handler\InterceptorPipeline} instead
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
23
$this->pipeline = /** @scrutinizer ignore-deprecated */ new InterceptorPipeline($dispatcher);
Loading history...
24
}
25
26
public function __clone()
27
{
28
$this->pipeline = clone $this->pipeline;
29
}
30
31
public function withInterceptors(CoreInterceptorInterface|InterceptorInterface ...$interceptors): static
32
{
33
$clone = clone $this;
34
foreach ($interceptors as $interceptor) {
35
$clone->pipeline->addInterceptor($interceptor);
36
}
37
38
return $clone;
39
}
40
41
public function build(HandlerInterface|CoreInterface $last): InterceptorPipeline