Skip to content

Commit

Permalink
Add possibility to call route methods from SlimRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtahavranek committed Dec 6, 2023
1 parent 6fbc10c commit da2c672
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Bridge/Slim/SlimRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@ public function getCallable(): callable

return $this->route->getCallable();
}

public function __call($name, $arguments)
{
return $this->route->$name(...$arguments);
}
}

0 comments on commit da2c672

Please sign in to comment.