I have a question with Symfony 2.7 ak try to modulate my services.
I edit the app / config / config.yml file to import the services of my Bundle
imports:
- { resource: '@AppBundle/Resources/config/services.yml'
I have a service on this route AppBundle / Resources / config / services.yml
This is the content:
services:
app.search:
class: AppBundle\Service\Search
public: true
arguments: ["@doctrine.orm.entity_manager", "@request_stack"]
tags:
- { name: kernel.event_listener, event: kernel.exception, method: onCoreException, priority: 1000 }
If I want to make it modular, I would like to have a service.yml
for each class. In this way, only dragging the files to the Bundle detects it instead of inserting those services into a single configuration file.
I would use any form that is not this but that is the simplest and simplest