2024-05-07 14:14:54 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
|
|
|
|
2024-05-07 14:21:17 +02:00
|
|
|
use TTN\Tea\Command\CreateTestDataCommand;
|
|
|
|
|
2024-05-07 14:14:54 +02:00
|
|
|
return static function (ContainerConfigurator $containerConfigurator) {
|
|
|
|
$services = $containerConfigurator->services()
|
|
|
|
->defaults()
|
|
|
|
->autowire()
|
|
|
|
->autoconfigure();
|
|
|
|
|
|
|
|
$services->load('TTN\\Tea\\', '../Classes/*')
|
|
|
|
->exclude('../Classes/Domain/Model/*');
|
2024-05-07 14:21:17 +02:00
|
|
|
|
|
|
|
$services->set(CreateTestDataCommand::class)
|
2024-07-29 17:21:27 +02:00
|
|
|
->tag(
|
|
|
|
'console.command',
|
|
|
|
[
|
2024-05-07 14:21:17 +02:00
|
|
|
'command' => 'tea:createtestdata',
|
2024-07-29 17:21:27 +02:00
|
|
|
'description' => 'Create test data in existing sysfolder',
|
2024-05-07 14:21:17 +02:00
|
|
|
]
|
|
|
|
);
|
2024-05-07 14:14:54 +02:00
|
|
|
};
|