mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
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:
parent
8aa37c7b73
commit
09b258876d
@ -35,6 +35,7 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface
|
|||||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||||
$loader->load('services.yml');
|
$loader->load('services.yml');
|
||||||
$loader->load('services/logger.yml');
|
$loader->load('services/logger.yml');
|
||||||
|
$loader->load('services/repositories.yml');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function prepend(ContainerBuilder $container)
|
public function prepend(ContainerBuilder $container)
|
||||||
|
@ -188,11 +188,6 @@ services:
|
|||||||
tags:
|
tags:
|
||||||
- { name: form.type }
|
- { 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:
|
chill.main.export.csv_formatter:
|
||||||
class: Chill\MainBundle\Export\Formatter\CSVFormatter
|
class: Chill\MainBundle\Export\Formatter\CSVFormatter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user