Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
garak opened this issue Dec 20, 2013 · 1 comment

Comments

@garak
Copy link
Member

garak commented Dec 20, 2013

in app/config/config_dev.yml, line 5

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

imports:
    - { resource: config.yml }

services:
    stats_persister:
        class: PUGX\StatsBundle\Service\NullPersister
    stats_reader:
        class: PUGX\StatsBundle\Service\NullReader

framework:

Posted from SensioLabsInsight

@liuggio
Copy link
Member

liuggio commented Dec 20, 2013

we used this in order to patch the current stats_persister,
a better implementation could be put in the DepInjDefinition like debug variable and handle it into the bundle.

@liuggio liuggio closed this as completed May 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants