File tree Expand file tree Collapse file tree 3 files changed +3
-13
lines changed Expand file tree Collapse file tree 3 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 29
29
use Symfony \Component \DependencyInjection \Exception \InvalidArgumentException ;
30
30
use Symfony \Component \DependencyInjection \Exception \LogicException ;
31
31
use Symfony \Component \DependencyInjection \Exception \RuntimeException ;
32
- use Symfony \Component \DependencyInjection \Exception \ServiceCircularReferenceException ;
33
32
use Symfony \Component \DependencyInjection \ExpressionLanguage ;
34
33
use Symfony \Component \DependencyInjection \LazyProxy \PhpDumper \DumperInterface as ProxyDumper ;
35
34
use Symfony \Component \DependencyInjection \LazyProxy \PhpDumper \LazyServiceDumper ;
@@ -168,15 +167,7 @@ public function dump(array $options = []): string|array
168
167
169
168
if ($ this ->getProxyDumper () instanceof NullDumper) {
170
169
(new AnalyzeServiceReferencesPass (true , false ))->process ($ this ->container );
171
- try {
172
- (new CheckCircularReferencesPass ())->process ($ this ->container );
173
- } catch (ServiceCircularReferenceException $ e ) {
174
- $ path = $ e ->getPath ();
175
- end ($ path );
176
- $ path [key ($ path )] .= '". Try running "composer require symfony/proxy-manager-bridge ' ;
177
-
178
- throw new ServiceCircularReferenceException ($ e ->getServiceId (), $ path );
179
- }
170
+ (new CheckCircularReferencesPass ())->process ($ this ->container );
180
171
}
181
172
182
173
$ this ->analyzeReferences ();
Original file line number Diff line number Diff line change @@ -765,7 +765,7 @@ public function testCircularReferenceAllowanceForLazyServices()
765
765
$ dumper = new PhpDumper ($ container );
766
766
$ dumper ->setProxyDumper (new NullDumper ());
767
767
768
- $ message = 'Circular reference detected for service "foo", path: "foo -> bar -> foo". Try running "composer require symfony/proxy-manager-bridge". ' ;
768
+ $ message = 'Circular reference detected for service "foo", path: "foo -> bar -> foo". ' ;
769
769
$ this ->expectException (ServiceCircularReferenceException::class);
770
770
$ this ->expectExceptionMessage ($ message );
771
771
Original file line number Diff line number Diff line change 31
31
"symfony/yaml" : " " ,
32
32
"symfony/config" : " " ,
33
33
"symfony/finder" : " For using double-star glob patterns or when GLOB_BRACE portability is required" ,
34
- "symfony/expression-language" : " For using expressions in service container configuration" ,
35
- "symfony/proxy-manager-bridge" : " Generate service proxies to lazy load them"
34
+ "symfony/expression-language" : " For using expressions in service container configuration"
36
35
},
37
36
"conflict" : {
38
37
"ext-psr" : " <1.1|>=2" ,
You can’t perform that action at this time.
0 commit comments