Is there a list of Symfony2 default container services?

前端 未结 6 478
小蘑菇
小蘑菇 2020-12-22 21:56

Here is an example, taken from Symfony2 website, about defining a custom service (YAML notation):

services:
    newsletter_manager:
                 


        
6条回答
  •  隐瞒了意图╮
    2020-12-22 22:29

    You can list services with

    php app/console debug:container log 
    

    If you need more about some service you can use the help

    php app/console debug:container log  --help
    

提交回复
热议问题