From 8b7c7c179b2fdee778ec0e77a49cdf5f01960e73 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 14 Sep 2017 10:50:29 +0200 Subject: [PATCH] [DI] Fix non-instantiables auto-discovery --- src/Symfony/Component/DependencyInjection/Loader/FileLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/DependencyInjection/Loader/FileLoader.php b/src/Symfony/Component/DependencyInjection/Loader/FileLoader.php index 40cf8f9ee4..8ad8a1ebd4 100644 --- a/src/Symfony/Component/DependencyInjection/Loader/FileLoader.php +++ b/src/Symfony/Component/DependencyInjection/Loader/FileLoader.php @@ -133,7 +133,7 @@ abstract class FileLoader extends BaseFileLoader throw new InvalidArgumentException(sprintf('Expected to find class "%s" in file "%s" while importing services from resource "%s", but it was not found! Check the namespace prefix used with the resource.', $class, $path, $pattern)); } - if (!$r->isInterface() && !$r->isTrait() && !$r->isAbstract()) { + if ($r->isInstantiable()) { $classes[] = $class; } }