diff --git a/service_container/lazy_services.rst b/service_container/lazy_services.rst index 11f55bfc1aa..cd1e78f07a1 100644 --- a/service_container/lazy_services.rst +++ b/service_container/lazy_services.rst @@ -50,13 +50,15 @@ You can mark the service as ``lazy`` by manipulating its definition: .. code-block:: yaml + # app/config/services.yml services: - app.twig_extension: - class: AppBundle\Twig\AppExtension - lazy: true + app.twig_extension: + class: AppBundle\Twig\AppExtension + lazy: true .. code-block:: xml + register('app.twig_extension', AppExtension::class)