Initial commit

This commit is contained in:
2023-04-08 09:18:52 +02:00
parent 40e6fa63e5
commit fa6f9d1080
8 changed files with 68 additions and 27 deletions

View File

@@ -10,14 +10,8 @@ declare(strict_types=1);
* 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();
@@ -27,23 +21,11 @@ return static function (ContainerConfigurator $containerConfigurator): void {
->autoconfigure()
;
// $services
// ->instanceof(LoggerAwareInterface::class)
// ->call('setLogger', [service('logger')]);
//
// $services
// ->instanceof(ElectionMethodAdapterInterface::class)
// ->tag('scc_voting.method');
$services->load('Scc\CQRSBundle\\', __DIR__ . '/../../../src')
$services->load('Zapoyok\CQRSBundle\\', __DIR__ . '/../../../src')
->exclude([
__DIR__,
__DIR__ . '/../../../src/SccCQRSBundle.php',
__DIR__ . '/../../../src/ZapoyokCQRSBundle.php',
__DIR__ . '/../../../src/{DependencyInjection}',
])
;
// $services->set(VotingMethodCollection::class)
// ->args([tagged_iterator('scc_voting.method')]);
// $services->alias('scc_voting.method.collection', VotingMethodCollection::class);
};