davidyell / Learning-Symfony2

Learning Symfony2 by recreating a Stack Exchange website
MIT License
3 stars 0 forks source link

[Insight] First level service should not be present in global configuration files #11

Closed davidyell closed 10 years ago

davidyell commented 10 years ago

in app/config/config.yml, line 68

A global service has been detected in your configuration file (service salavert.twig.time_ago). You should consider storing it in a bundle configuration.

    username:  %mailer_user%
    password:  %mailer_password%
    spool:     { type: memory }

services:
    salavert.twig.time_ago:
        class: Salavert\Twig\Extension\TimeAgoExtension
        arguments: [@translator]
        tags:
        - { name: twig.extension }

Posted from SensioLabsInsight