Skip to content

Commit

Permalink
Manifest method middlewares (#12)
Browse files Browse the repository at this point in the history
Fix in ManifestMiddlewareService
  • Loading branch information
petr-buchyn authored Dec 9, 2020
1 parent bcdd1a4 commit 45cd73b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Middleware/ManifestMiddlewareService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function beforeMethodCall(ManifestInterface $manifest, string $methodName
{
foreach ($this->middlewares as $middleware) {
if ($middleware->supports($manifest, $methodName, $params)) {
$returnValue = ManifestMethodMiddlewareInterface::NO_RETURN_VALUE;
$middleware->beforeMethodCall($manifest, $methodName, $params, $returnValue);
if (ManifestMethodMiddlewareInterface::NO_RETURN_VALUE !== $returnValue) {
return $returnValue;
Expand Down

0 comments on commit 45cd73b

Please sign in to comment.