Skip to content

Commit

Permalink
Merge pull request #53 from maximehuran/feature/splat-routing
Browse files Browse the repository at this point in the history
Call correctly decorated service with splat argument
  • Loading branch information
maximehuran authored Sep 6, 2023
2 parents eed36d1 + 736bb5c commit 92168de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ test.twig: ## Validate Twig templates
### SYLIUS
### ¯¯¯¯¯¯

sylius: dependencies sylius.database sylius.fixtures sylius.assets ## Install Sylius
sylius: dependencies sylius.database sylius.fixtures sylius.assets messenger.setup ## Install Sylius
.PHONY: sylius

sylius.database: ## Setup the database
Expand All @@ -161,6 +161,9 @@ sylius.assets: ## Install all assets with symlinks
${CONSOLE} sylius:install:assets
${CONSOLE} sylius:theme:assets:install --symlink

messenger.setup: ## Setup Messenger transports
${CONSOLE} messenger:setup-transports

###
### PLATFORM
### ¯¯¯¯¯¯¯¯
Expand Down
2 changes: 1 addition & 1 deletion src/Routing/RequestContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function __call(string $name, array $arguments)
{
$callback = [$this->decorated, $name];
if (\is_callable($callback)) {
return \call_user_func($callback, $arguments);
return \call_user_func($callback, ...$arguments);
}

throw new Exception(sprintf('Method %s not found for class "%s"', $name, \get_class($this->decorated)));
Expand Down

0 comments on commit 92168de

Please sign in to comment.