adding repository for user entity + simplify service config

The configuration of repositories is now in a new file for a better readability.
This commit is contained in:
Julien Fastré 2016-06-21 22:02:43 +02:00
parent 8aa37c7b73
commit 09b258876d
2 changed files with 1 additions and 5 deletions

View File

@ -35,6 +35,7 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');
$loader->load('services/logger.yml');
$loader->load('services/repositories.yml');
}
public function prepend(ContainerBuilder $container)

View File

@ -188,11 +188,6 @@ services:
tags:
- { name: form.type }
chill.main.countries_repository:
class: Doctrine\ORM\EntityRepository
factory: ["@doctrine.orm.entity_manager", getRepository]
arguments:
- "Chill\\MainBundle\\Entity\\Country"
chill.main.export.csv_formatter:
class: Chill\MainBundle\Export\Formatter\CSVFormatter