Initial commit
This commit is contained in:
49
src/Resources/config/services.php
Normal file
49
src/Resources/config/services.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* This file is part of the zapoyok.info project.
|
||||
* (c) <zapoyok.info> <jerome.fix@zapoyok.info>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Psr\Log\LoggerAwareInterface;
|
||||
use Scc\VotingBundle\Collection\VotingMethodCollection;
|
||||
use Scc\VotingBundle\Contract\ElectionMethodAdapterInterface;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
use function symfony\component\dependencyinjection\loader\configurator\service;
|
||||
use function Symfony\Component\DependencyInjection\Loader\Configurator\tagged_iterator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$services = $containerConfigurator->services();
|
||||
|
||||
$services->defaults()
|
||||
->public()
|
||||
->autowire(true)
|
||||
->autoconfigure()
|
||||
;
|
||||
|
||||
// $services
|
||||
// ->instanceof(LoggerAwareInterface::class)
|
||||
// ->call('setLogger', [service('logger')]);
|
||||
//
|
||||
// $services
|
||||
// ->instanceof(ElectionMethodAdapterInterface::class)
|
||||
// ->tag('scc_voting.method');
|
||||
|
||||
$services->load('Scc\CQRSBundle\\', __DIR__ . '/../../../src')
|
||||
->exclude([
|
||||
__DIR__,
|
||||
__DIR__ . '/../../../src/SccCQRSBundle.php',
|
||||
__DIR__ . '/../../../src/{DependencyInjection}',
|
||||
])
|
||||
;
|
||||
|
||||
// $services->set(VotingMethodCollection::class)
|
||||
// ->args([tagged_iterator('scc_voting.method')]);
|
||||
// $services->alias('scc_voting.method.collection', VotingMethodCollection::class);
|
||||
};
|
||||
Reference in New Issue
Block a user