Is there a list of Symfony2 default container services?

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

    you can use following command to get desired service details:

    php app/console container:debug | grep service_name
    

提交回复
热议问题