mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-27 06:46:10 +01:00
tea/Configuration/Services.php

27 lines
704 B
PHP
Raw Permalink Normal View History

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