как я могу внедрить службу в репозиторий сущностей с помощью внедрения зависимостей?
Я пробую вот так:
<service id="rp.repository.user" class="RP\CoreBundle\Repository\UserRepository"
factory-service="doctrine.orm.entity_manager" factory-method="getRepository">
<call method="setSecurityContext">
<argument type="service" id="security.context"/>
</call>
</service>
но setSecurityContext никогда не вызывается Пожалуйста, помогите