Is there a list of Symfony2 default container services?

前端 未结 6 500
小蘑菇
小蘑菇 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:32

    you can use

        php app/console container:debug
    

    to get a list of all available public service IDs or

        php app/console container:debug --show-private
    

    to show both public and private service IDs

提交回复
热议问题