From 7ca6a82422064a3734680472641f4b5e8ce4c0c9 Mon Sep 17 00:00:00 2001 From: Rasmus Schultz Date: Fri, 21 Sep 2018 10:15:43 +0200 Subject: [PATCH] clarify an exception that has confused a few people --- src/Container.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Container.php b/src/Container.php index f288b9d..ae103e7 100644 --- a/src/Container.php +++ b/src/Container.php @@ -135,7 +135,7 @@ public function call($callback, $map = []) public function create($class_name, $map = []) { if (! class_exists($class_name)) { - throw new InvalidArgumentException("unable to create component: {$class_name}"); + throw new InvalidArgumentException("unable to create component: {$class_name} (autoloading failed)"); } $reflection = new ReflectionClass($class_name);