File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/Symfony/Component/DependencyInjection/Loader/Configurator/Traits Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \DependencyInjection \Loader \Configurator \Traits ;
13
13
14
- use Symfony \Component \DependencyInjection \Reference ;
14
+ use Symfony \Component \DependencyInjection \Exception \ InvalidArgumentException ;
15
15
16
16
trait FactoryTrait
17
17
{
@@ -25,8 +25,7 @@ trait FactoryTrait
25
25
final public function factory ($ factory )
26
26
{
27
27
if (is_string ($ factory ) && 1 === substr_count ($ factory , ': ' )) {
28
- $ factory = explode (': ' , $ factory );
29
- $ factory [0 ] = new Reference ($ factory [0 ]);
28
+ throw new InvalidArgumentException ('The short factory notation is not supported by the PHP-based DI configuration. ' );
30
29
}
31
30
32
31
$ this ->definition ->setFactory (static ::processValue ($ factory , true ));
You can’t perform that action at this time.
0 commit comments