File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
DependencyInjection/Compiler Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ public function process(ContainerBuilder $container)
42
42
$ template = null ;
43
43
44
44
$ collectorClass = $ container ->findDefinition ($ id )->getClass ();
45
- $ isTemplateAware = is_subclass_of ($ collectorClass , TemplateAwareDataCollectorInterface::class);
46
- if (isset ($ attributes [0 ]['template ' ]) || $ isTemplateAware ) {
45
+ if (isset ($ attributes [0 ]['template ' ]) || is_subclass_of ($ collectorClass , TemplateAwareDataCollectorInterface::class)) {
47
46
$ idForTemplate = $ attributes [0 ]['id ' ] ?? $ collectorClass ;
48
47
if (!$ idForTemplate ) {
49
48
throw new InvalidArgumentException (sprintf ('Data collector service "%s" must have an id attribute in order to specify a template. ' , $ id ));
You can’t perform that action at this time.
0 commit comments