add thirdparty bundle, fix errors, set new path for all config yaml files

This commit is contained in:
Tchama 2020-08-04 13:55:59 +02:00
parent eb506475fa
commit dbd8023885
12 changed files with 13 additions and 18 deletions

View File

@ -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'
)
)
));

View File

@ -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

View File

@ -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
View File

@ -0,0 +1 @@
services: