Move Symfony2 service config to bundle

后端 未结 3 920
有刺的猬
有刺的猬 2021-01-31 04:59

I have the following in my config.yml

services:
    my.user_provider:
        class: Acme\\MySecurityBundle\\Security\\UserProvider

but would l

3条回答
  •  死守一世寂寞
    2021-01-31 05:27

    I accomplished this by referencing it as an import in app/config.yml:

    imports:
        - { resource: "@MySecurityBundle/Resources/config/services.yml" }
    

提交回复
热议问题