From 62bba1bd232d8728fea72d400160965139863ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Colombaro?= Date: Tue, 2 May 2017 10:21:07 +0200 Subject: [PATCH] illuminate: make with parameters (#1888) Since Illuminate 5.4, `$container->make` with `$parameters` is `$container->makeWith` : https://github.com/illuminate/container/blob/8fbb101a6081786e830cb89d1a1faa846c2c0442/Container.php#L547-L568 Related: * https://github.com/roots/sage/commit/f242cb50e9033af815ec56c7346d7f9da4b23460 * https://github.com/illuminate/container/commit/1fc0d2451e23d2ea73c10462d74add4767e2b74c --- app/helpers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers.php b/app/helpers.php index 5c11fa5..b56c162 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -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); } /**