Description
When working with QueryType as a service, it's impossible to inject anything into this service using constructor or setter (Symfony `caller` method).
I was trying to create a new QueryType as a service on ezplatform-demo to use it for displaying blog posts on Top Stories section.
I was trying to inject languages array via Symfony caller method:
app.blog_posts_query_type:
class: AppBundle\QueryType\BlogPostsQueryType
calls:
- [setLanguages, ["$languages$"]]
tags:
- { name: ezpublish.query_type }
Unfortunately setLanguages method is never fired.
Same for passing variables via constructor - it doesn't work.