mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 18:13:48 +00:00
@@ -31,11 +31,15 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface
|
||||
|
||||
$container->setParameter('chill_main.routing.resources',
|
||||
$config['routing']['resources']);
|
||||
|
||||
$container->setParameter('chill_main.pagination.item_per_page',
|
||||
$config['pagination']['item_per_page']);
|
||||
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.yml');
|
||||
$loader->load('services/logger.yml');
|
||||
$loader->load('services/repositories.yml');
|
||||
$loader->load('services/pagination.yml');
|
||||
}
|
||||
|
||||
public function prepend(ContainerBuilder $container)
|
||||
|
@@ -35,7 +35,17 @@ class Configuration implements ConfigurationInterface
|
||||
->arrayNode('resources')
|
||||
->prototype('scalar')->end()
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
->arrayNode('pagination')
|
||||
->canBeDisabled()
|
||||
->children()
|
||||
->integerNode('item_per_page')
|
||||
->info('The number of item to show in the page result, by default')
|
||||
->min(1)
|
||||
->defaultValue(50)
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
->end();
|
||||
|
||||
|
Reference in New Issue
Block a user