8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92efb2e commit 81ead82Copy full SHA for 81ead82
src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits/FactoryTrait.php
@@ -11,7 +11,7 @@
11
12
namespace Symfony\Component\DependencyInjection\Loader\Configurator\Traits;
13
14
-use Symfony\Component\DependencyInjection\Reference;
+use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
15
16
trait FactoryTrait
17
{
@@ -25,8 +25,7 @@ trait FactoryTrait
25
final public function factory($factory)
26
27
if (is_string($factory) && 1 === substr_count($factory, ':')) {
28
- $factory = explode(':', $factory);
29
- $factory[0] = new Reference($factory[0]);
+ throw new InvalidArgumentException('The short factory notation is not supported by the PHP-based DI configuration.');
30
}
31
32
$this->definition->setFactory(stati 3A58 c::processValue($factory, true));
0 commit comments