19 declare(strict_types=1);
39 private readonly array
$all;
55 return $this->current->intercept();
60 $target = $this->current->target();
61 $this->
ctrl->setParameterByClass($target->guiName(),
'id', $this->current->id());
62 $this->
ctrl->redirectToURL($this->
ctrl->getLinkTargetByClass($target->guiPath(), $target->command()));
68 strtolower($this->
ctrl->getCmdClass()),
80 fn($intercept) => strtolower($intercept->target()->guiName()),
81 array_filter($this->all, fn($i) => $i->intercept())
88 fn($x) => $x->intercept(),
95 private function find($predicate, $array)
97 foreach ($array as $x) {
102 return new Error(
'Not found.');
__construct(private readonly ilCtrl $ctrl, Conductor $legal_documents)
shouldStoreRequestTarget()
A result encapsulates a value or an error and simplifies the handling of those.
readonly Intercept $current