Skip to content

[Dependency Injection ] Fix _instanceof configuration section. #8514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2017

Conversation

mimol91
Copy link
Contributor

@mimol91 mimol91 commented Oct 13, 2017

It seems that previous configuration

    _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.

class: AppBundle\Domain\LoaderInterface
public: true
tags: ['app.domain_loader']
AppBundle\Domain\LoaderInterface
Copy link
Member

@yceruto yceruto Oct 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing : at the end.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yceruto nice catch, fixed

@xabbuh
Copy link
Member

xabbuh commented Oct 27, 2017

Good catch, thanks @mimol91.

@xabbuh xabbuh merged commit 029d11e into symfony:3.3 Oct 27, 2017
xabbuh added a commit that referenced this pull request Oct 27, 2017
…tion. (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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants