mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Update.
This commit is contained in:
parent
402bf7d500
commit
055f3e56ca
@ -18,12 +18,20 @@ final class ChillWopiExtension extends Extension
|
||||
{
|
||||
public function load(array $configs, ContainerBuilder $container)
|
||||
{
|
||||
$config = $this->processConfiguration(new Configuration(), $configs);
|
||||
|
||||
$container
|
||||
->setParameter(
|
||||
'chill_wopi',
|
||||
$this->processConfiguration(new Configuration(), $configs)
|
||||
);
|
||||
|
||||
$container
|
||||
->setParameter(
|
||||
'chill_wopi.openstack_client',
|
||||
$config['openstack']
|
||||
);
|
||||
|
||||
$loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
|
||||
$loader->load('services.php');
|
||||
}
|
||||
|
@ -21,13 +21,14 @@ return static function (ContainerConfigurator $container) {
|
||||
->autoconfigure();
|
||||
|
||||
$services
|
||||
->load('Chill\\WopiBundle\\Service\\', __DIR__ . '/../../Service');
|
||||
->load('ChampsLibres\\WopiTestBundle\\Service\\', __DIR__ . '/../../Service');
|
||||
|
||||
$services
|
||||
->load('Chill\\WopiBundle\\Controller\\', __DIR__ . '/../../Controller')
|
||||
->tag('controller.service_arguments');
|
||||
|
||||
$services
|
||||
->set(OpenStack::class)
|
||||
->arg('$options', '%chill_wopi.openstack%');
|
||||
->set('chill_wopi.openstack_client')
|
||||
->class(OpenStack::class)
|
||||
->arg('$options', '%chill_wopi.openstack_client%');
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user