Skip to content

Commit 659cff4

Browse files
committed
minor #8514 [Dependency Injection ] Fix _instanceof configuration section. (mimol91)
This PR was merged into the 3.3 branch. Discussion ---------- [Dependency Injection ] Fix _instanceof configuration section. It seems that previous configuration ```yml _instanceof: class: AppBundle\Domain\LoaderInterface public: true tags: ['app.domain_loader'] ``` throws an error: `Type definition "class" must be a non-empty array within "_instanceof" in `. Moreover, it will not be possible to configure multiple 'elements' After this changes it works as expected. Commits ------- 029d11e [Dependency Injection ] Fix _instanceof configuration section.
2 parents a2d12d9 + 029d11e commit 659cff4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

service_container/3.3-di-changes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,9 @@ inherited from an abstract definition:
489489
# ...
490490
491491
_instanceof:
492-
class: AppBundle\Domain\LoaderInterface
493-
public: true
494-
tags: ['app.domain_loader']
492+
AppBundle\Domain\LoaderInterface:
493+
public: true
494+
tags: ['app.domain_loader']
495495
496496
.. code-block:: xml
497497

0 commit comments

Comments
 (0)