mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix services file.
This commit is contained in:
parent
9444e46f66
commit
eb65eb69c6
@ -9,24 +9,27 @@ declare(strict_types=1);
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
||||
|
||||
use ChampsLibres\WopiLib\WopiInterface;
|
||||
use ChampsLibres\WopiTestBundle\Service\Wopi;
|
||||
use OpenStack\OpenStack;
|
||||
|
||||
return static function (ContainerConfigurator $container) {
|
||||
$services = $container->services();
|
||||
$services = $container
|
||||
->services();
|
||||
|
||||
$services
|
||||
->defaults()
|
||||
->autoconfigure(true)
|
||||
->autowire(true);
|
||||
->autowire()
|
||||
->autoconfigure();
|
||||
|
||||
$services
|
||||
->load('ChampsLibres\\WopiTestBundle\\Service\\', __DIR__ . '/../../Service');
|
||||
->load('Chill\\WopiBundle\\', '../*')
|
||||
->exclude('../src/{DependencyInjection,Entity,Resources,Tests,Kernel.php}');
|
||||
|
||||
$services
|
||||
->load('ChampsLibres\\WopiTestBundle\\Controller\\', __DIR__ . '/../../Controller')
|
||||
->load('Chill\\WopiBundle\\Controller\\', __DIR__ . '/../../Controller')
|
||||
->tag('controller.service_arguments');
|
||||
|
||||
$services
|
||||
->alias(WopiInterface::class, Wopi::class);
|
||||
->set('chill_wopi.openstack_client')
|
||||
->class(OpenStack::class)
|
||||
->arg('$options', '%chill_wopi.openstack%');
|
||||
};
|
||||
|
@ -1,35 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
||||
|
||||
use OpenStack\OpenStack;
|
||||
|
||||
return static function (ContainerConfigurator $container) {
|
||||
$services = $container
|
||||
->services();
|
||||
|
||||
$services
|
||||
->defaults()
|
||||
->autowire()
|
||||
->autoconfigure();
|
||||
|
||||
$services
|
||||
->load('Chill\\WopiBundle\\', '../*')
|
||||
->exclude('../src/{DependencyInjection,Entity,Resources,Tests,Kernel.php}');
|
||||
|
||||
$services
|
||||
->load('Chill\\WopiBundle\\Controller\\', __DIR__ . '/../../Controller')
|
||||
->tag('controller.service_arguments');
|
||||
|
||||
$services
|
||||
->set('chill_wopi.openstack_client')
|
||||
->class(OpenStack::class)
|
||||
->arg('$options', '%chill_wopi.openstack%');
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user