mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +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();
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.yml');
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
|
||||
$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)
|
||||
@ -40,7 +47,7 @@ class ChillThirdPartyExtension extends Extension implements PrependExtensionInte
|
||||
$container->prependExtensionConfig('chill_main', array(
|
||||
'routing' => array(
|
||||
'resources' => array(
|
||||
'@ChillThirdPartyBundle/Resources/config/routing.yml'
|
||||
'@ChillThirdPartyBundle/config/routes.yaml'
|
||||
)
|
||||
)
|
||||
));
|
||||
|
@ -17,8 +17,8 @@ class Configuration implements ConfigurationInterface
|
||||
*/
|
||||
public function getConfigTreeBuilder()
|
||||
{
|
||||
$treeBuilder = new TreeBuilder();
|
||||
$rootNode = $treeBuilder->root('chill_third_party');
|
||||
$treeBuilder = new TreeBuilder('chill_third_party');
|
||||
$rootNode = $treeBuilder->getRootNode('chill_third_party');
|
||||
|
||||
// Here you should define the parameters that are allowed to
|
||||
// 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