Fix services file.

This commit is contained in:
Pol Dellaiera 2021-08-10 15:40:15 +02:00 committed by Marc Ducobu
parent 9444e46f66
commit eb65eb69c6
2 changed files with 11 additions and 43 deletions

View File

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

View File

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