Skip to content

[DependencyInjection] Calls does not apply to service via autoconfigure #23497

Closed
@BoShurik

Description

@BoShurik
Q A
Bug report? yes/no
Feature request? yes/no
BC Break report? no
RFC? no
Symfony version 3.3.4
    _defaults:
        autoconfigure: true

    AppBundle\Controller\Admin\:
        resource: '../../../src/AppBundle/Controller/Admin'
        public: true
        calls:
            - ['setLogger', ['@logger']]
        tags: ['controller.service_arguments']

    AppBundle\Controller\Admin\Block\BlockController:
        tags:
            - { name: app.admin, group: site }
Information for Service "AppBundle\Controller\Admin\Block\BlockController"
==========================================================================

 ---------------- -------------------------------------------------- 
  Option           Value                                             
 ---------------- -------------------------------------------------- 
  Service ID       AppBundle\Controller\Admin\Block\BlockController  
  Class            AppBundle\Controller\Admin\Block\BlockController  
  Tags             app.admin (group: site)                        
                   controller.service_arguments                      
  Public           yes                                               
  Synthetic        no                                                
  Lazy             no                                                
  Shared           yes                                               
  Abstract         no                                                
  Autowired        no                                                
  Autoconfigured   yes                                               
 ---------------- -------------------------------------------------- 

Calls did not apply to the service.
If I remove additional definition for AppBundle\Controller\Admin\Block\BlockController with tag, then all works correct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions