Is there a list of Symfony2 default container services?

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

    The WebProfilerExtraBundle is very useful for this.

    It also adds some details about routing, assetic and twig that are very helpful. As a someone learning to think in Symfony, I REALLY like this bundle.

提交回复
热议问题