Skip to content

Commit d6467c0

Browse files
author
Anton Shabovta
committed
Execute interruptions using processor
1 parent 87208d8 commit d6467c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Kernel.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,8 @@ private function intercept($key, $value)
116116
return $value;
117117
}
118118

119-
$interceptor = $this->interruptions[$interrupt];
120-
121119
$value = \is_array($value) ? $value : [$value];
122120

123-
return $interceptor(...$value);
121+
return $this->processor->execute($this->interruptions[$interrupt], $value);
124122
}
125123
}

0 commit comments

Comments
 (0)