mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +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)
|
public function load(array $configs, ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
|
$config = $this->processConfiguration(new Configuration(), $configs);
|
||||||
|
|
||||||
$container
|
$container
|
||||||
->setParameter(
|
->setParameter(
|
||||||
'chill_wopi',
|
'chill_wopi',
|
||||||
$this->processConfiguration(new Configuration(), $configs)
|
$this->processConfiguration(new Configuration(), $configs)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$container
|
||||||
|
->setParameter(
|
||||||
|
'chill_wopi.openstack_client',
|
||||||
|
$config['openstack']
|
||||||
|
);
|
||||||
|
|
||||||
$loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
|
$loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
|
||||||
$loader->load('services.php');
|
$loader->load('services.php');
|
||||||
}
|
}
|
||||||
|
@ -21,13 +21,14 @@ return static function (ContainerConfigurator $container) {
|
|||||||
->autoconfigure();
|
->autoconfigure();
|
||||||
|
|
||||||
$services
|
$services
|
||||||
->load('Chill\\WopiBundle\\Service\\', __DIR__ . '/../../Service');
|
->load('ChampsLibres\\WopiTestBundle\\Service\\', __DIR__ . '/../../Service');
|
||||||
|
|
||||||
$services
|
$services
|
||||||
->load('Chill\\WopiBundle\\Controller\\', __DIR__ . '/../../Controller')
|
->load('Chill\\WopiBundle\\Controller\\', __DIR__ . '/../../Controller')
|
||||||
->tag('controller.service_arguments');
|
->tag('controller.service_arguments');
|
||||||
|
|
||||||
$services
|
$services
|
||||||
->set(OpenStack::class)
|
->set('chill_wopi.openstack_client')
|
||||||
->arg('$options', '%chill_wopi.openstack%');
|
->class(OpenStack::class)
|
||||||
|
->arg('$options', '%chill_wopi.openstack_client%');
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user