mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
add thirdparty bundle, fix errors, set new path for all config yaml files
This commit is contained in:
parent
eb506475fa
commit
dbd8023885
@ -24,8 +24,15 @@ class ChillThirdPartyExtension extends Extension implements PrependExtensionInte
|
|||||||
$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/controller.yaml');
|
||||||
|
$loader->load('services/form.yaml');
|
||||||
|
$loader->load('services/security.yaml');
|
||||||
|
$loader->load('services/3partytype.yaml');
|
||||||
|
$loader->load('services/search.yaml');
|
||||||
|
$loader->load('services/templating.yaml');
|
||||||
|
$loader->load('services/menu.yaml');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function prepend(ContainerBuilder $container)
|
public function prepend(ContainerBuilder $container)
|
||||||
@ -40,7 +47,7 @@ class ChillThirdPartyExtension extends Extension implements PrependExtensionInte
|
|||||||
$container->prependExtensionConfig('chill_main', array(
|
$container->prependExtensionConfig('chill_main', array(
|
||||||
'routing' => array(
|
'routing' => array(
|
||||||
'resources' => array(
|
'resources' => array(
|
||||||
'@ChillThirdPartyBundle/Resources/config/routing.yml'
|
'@ChillThirdPartyBundle/config/routes.yaml'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
@ -17,8 +17,8 @@ class Configuration implements ConfigurationInterface
|
|||||||
*/
|
*/
|
||||||
public function getConfigTreeBuilder()
|
public function getConfigTreeBuilder()
|
||||||
{
|
{
|
||||||
$treeBuilder = new TreeBuilder();
|
$treeBuilder = new TreeBuilder('chill_third_party');
|
||||||
$rootNode = $treeBuilder->root('chill_third_party');
|
$rootNode = $treeBuilder->getRootNode('chill_third_party');
|
||||||
|
|
||||||
// Here you should define the parameters that are allowed to
|
// Here you should define the parameters that are allowed to
|
||||||
// configure your bundle. See the documentation linked above for
|
// configure your bundle. See the documentation linked above for
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
services:
|
|
||||||
Chill\ThirdPartyBundle\:
|
|
||||||
resource: '../..'
|
|
||||||
exclude: '../../{Entity,Resources/migrations}'
|
|
||||||
|
|
||||||
imports:
|
|
||||||
- { resource: './services/controller.yml' }
|
|
||||||
- { resource: './services/form.yml' }
|
|
||||||
- { resource: './services/security.yml' }
|
|
||||||
- { resource: './services/3partytype.yml' }
|
|
||||||
- { resource: './services/search.yml' }
|
|
||||||
- { resource: './services/templating.yml' }
|
|
||||||
- { resource: './services/menu.yml' }
|
|
1
config/services.yaml
Normal file
1
config/services.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
services:
|
Loading…
x
Reference in New Issue
Block a user