mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 22:46:13 +00:00
sf4, setting new path for all config yaml files, and replace 'controller' path syntax in routes definitions
This commit is contained in:
parent
fbaaa44ae6
commit
3c37924dc1
@ -23,9 +23,9 @@ class ChillCustomFieldsExtension extends Extension implements PrependExtensionIn
|
|||||||
$configuration = new Configuration();
|
$configuration = new Configuration();
|
||||||
$config = $this->processConfiguration($configuration, $configs);
|
$config = $this->processConfiguration($configuration, $configs);
|
||||||
|
|
||||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
|
||||||
$loader->load('services.yml');
|
$loader->load('services.yaml');
|
||||||
$loader->load('services/fixtures.yml');
|
$loader->load('services/fixtures.yaml');
|
||||||
|
|
||||||
//add at least a blank array at 'customizable_entities' options
|
//add at least a blank array at 'customizable_entities' options
|
||||||
//$customizable_entities = (isset($config['customizables_entities'])
|
//$customizable_entities = (isset($config['customizables_entities'])
|
||||||
@ -51,7 +51,7 @@ class ChillCustomFieldsExtension extends Extension implements PrependExtensionIn
|
|||||||
$container->prependExtensionConfig('chill_main', array(
|
$container->prependExtensionConfig('chill_main', array(
|
||||||
'routing' => array(
|
'routing' => array(
|
||||||
'resources' => array(
|
'resources' => array(
|
||||||
'@ChillCustomFieldsBundle/Resources/config/routing.yml'
|
'@ChillCustomFieldsBundle/config/routes.yaml'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
chill_customfields_customfieldsgroup:
|
|
||||||
resource: "@ChillCustomFieldsBundle/Resources/config/routing/customfieldsgroup.yml"
|
|
||||||
prefix: /
|
|
||||||
|
|
||||||
chill_customfields_customfield:
|
|
||||||
resource: "@ChillCustomFieldsBundle/Resources/config/routing/customfield.yml"
|
|
||||||
prefix: /
|
|
7
config/routes.yaml
Normal file
7
config/routes.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
chill_customfields_customfieldsgroup:
|
||||||
|
resource: "@ChillCustomFieldsBundle/config/routes/customfieldsgroup.yaml"
|
||||||
|
prefix: /
|
||||||
|
|
||||||
|
chill_customfields_customfield:
|
||||||
|
resource: "@ChillCustomFieldsBundle/config/routes/customfield.yaml"
|
||||||
|
prefix: /
|
@ -1,4 +1,4 @@
|
|||||||
services:
|
services:
|
||||||
Chill\CustomFieldsBundle\DataFixtures\ORM\:
|
Chill\CustomFieldsBundle\DataFixtures\ORM\:
|
||||||
resource: ../../../DataFixtures/ORM
|
resource: ../../DataFixtures/ORM
|
||||||
tags: [ 'doctrine.fixture.orm' ]
|
tags: [ 'doctrine.fixture.orm' ]
|
Loading…
x
Reference in New Issue
Block a user