Skip to content

Commit

Permalink
illuminate: make with parameters (#1888)
Browse files Browse the repository at this point in the history
Since Illuminate 5.4, `$container->make` with `$parameters` is `$container->makeWith` : https://github.com/illuminate/container/blob/8fbb101a6081786e830cb89d1a1faa846c2c0442/Container.php#L547-L568

Related: 
* f242cb5
* illuminate/container@1fc0d24
  • Loading branch information
LeoColomb authored and QWp6t committed May 2, 2017
1 parent 80c5a6a commit 62bba1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function sage($abstract = null, $parameters = [], ContainerContract $container =
return $container;
}
return $container->bound($abstract)
? $container->make($abstract, $parameters)
: $container->make("sage.{$abstract}", $parameters);
? $container->makeWith($abstract, $parameters)
: $container->makeWith("sage.{$abstract}", $parameters);
}

/**
Expand Down

0 comments on commit 62bba1b

Please sign in to comment.