diff --git a/Classes/Command/Input/Question/Command/CommandAliasQuestion.php b/Classes/Command/Input/Question/Command/CommandAliasQuestion.php index 3ad8d23..89d384b 100644 --- a/Classes/Command/Input/Question/Command/CommandAliasQuestion.php +++ b/Classes/Command/Input/Question/Command/CommandAliasQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.command')] readonly class CommandAliasQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.command-name')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Command/CommandClassNameQuestion.php b/Classes/Command/Input/Question/Command/CommandClassNameQuestion.php index c1b2c17..dcc13a1 100644 --- a/Classes/Command/Input/Question/Command/CommandClassNameQuestion.php +++ b/Classes/Command/Input/Question/Command/CommandClassNameQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.command')] readonly class CommandClassNameQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.command-class')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Command/CommandNameQuestion.php b/Classes/Command/Input/Question/Command/CommandNameQuestion.php index 34c4841..d6474dd 100644 --- a/Classes/Command/Input/Question/Command/CommandNameQuestion.php +++ b/Classes/Command/Input/Question/Command/CommandNameQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.command')] readonly class CommandNameQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.command-name')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Controller/ActionMethodNameQuestion.php b/Classes/Command/Input/Question/Controller/ActionMethodNameQuestion.php index 0a25d7f..dc07204 100644 --- a/Classes/Command/Input/Question/Controller/ActionMethodNameQuestion.php +++ b/Classes/Command/Input/Question/Controller/ActionMethodNameQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.controller')] readonly class ActionMethodNameQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.controller-action')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Controller/ControllerClassNameQuestion.php b/Classes/Command/Input/Question/Controller/ControllerClassNameQuestion.php index bb4498c..5d46bf6 100644 --- a/Classes/Command/Input/Question/Controller/ControllerClassNameQuestion.php +++ b/Classes/Command/Input/Question/Controller/ControllerClassNameQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.controller')] readonly class ControllerClassNameQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.controller-class')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Event/EventClassNameQuestion.php b/Classes/Command/Input/Question/Event/EventClassNameQuestion.php index 67f22d0..e014cd6 100644 --- a/Classes/Command/Input/Question/Event/EventClassNameQuestion.php +++ b/Classes/Command/Input/Question/Event/EventClassNameQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.event')] readonly class EventClassNameQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.event-class')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/EventListener/EventListenerClassNameQuestion.php b/Classes/Command/Input/Question/EventListener/EventListenerClassNameQuestion.php index 0aac4a0..8f03732 100644 --- a/Classes/Command/Input/Question/EventListener/EventListenerClassNameQuestion.php +++ b/Classes/Command/Input/Question/EventListener/EventListenerClassNameQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.event-listener')] readonly class EventListenerClassNameQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.event-listener-class')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Extension/ComposerNameQuestion.php b/Classes/Command/Input/Question/Extension/ComposerNameQuestion.php index b61fb93..a53f004 100644 --- a/Classes/Command/Input/Question/Extension/ComposerNameQuestion.php +++ b/Classes/Command/Input/Question/Extension/ComposerNameQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.extension')] readonly class ComposerNameQuestion extends AbstractQuestion @@ -32,6 +33,7 @@ ]; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.composer_name')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Extension/EmailQuestion.php b/Classes/Command/Input/Question/Extension/EmailQuestion.php index 1adb5b6..9bcef67 100644 --- a/Classes/Command/Input/Question/Extension/EmailQuestion.php +++ b/Classes/Command/Input/Question/Extension/EmailQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.extension')] readonly class EmailQuestion extends AbstractQuestion @@ -30,6 +31,7 @@ ]; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.email')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Extension/ExtensionKeyQuestion.php b/Classes/Command/Input/Question/Extension/ExtensionKeyQuestion.php index 23e43cc..24d00fd 100644 --- a/Classes/Command/Input/Question/Extension/ExtensionKeyQuestion.php +++ b/Classes/Command/Input/Question/Extension/ExtensionKeyQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.extension')] readonly class ExtensionKeyQuestion extends AbstractQuestion @@ -30,6 +31,7 @@ ]; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.extension_key')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Extension/NamespaceQuestion.php b/Classes/Command/Input/Question/Extension/NamespaceQuestion.php index 48d4d23..7ad16b3 100644 --- a/Classes/Command/Input/Question/Extension/NamespaceQuestion.php +++ b/Classes/Command/Input/Question/Extension/NamespaceQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.extension')] readonly class NamespaceQuestion extends AbstractQuestion @@ -31,6 +32,7 @@ ]; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.namespace')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Extension/VersionQuestion.php b/Classes/Command/Input/Question/Extension/VersionQuestion.php index 09de761..557a821 100644 --- a/Classes/Command/Input/Question/Extension/VersionQuestion.php +++ b/Classes/Command/Input/Question/Extension/VersionQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.extension')] readonly class VersionQuestion extends AbstractQuestion @@ -33,6 +34,7 @@ ]; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.version')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Locallang/LocallangFileNameQuestion.php b/Classes/Command/Input/Question/Locallang/LocallangFileNameQuestion.php index c080e0c..ce5d8c1 100644 --- a/Classes/Command/Input/Question/Locallang/LocallangFileNameQuestion.php +++ b/Classes/Command/Input/Question/Locallang/LocallangFileNameQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.locallang')] readonly class LocallangFileNameQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.locallang_file_name')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Locallang/LocallangTransUnitIdQuestion.php b/Classes/Command/Input/Question/Locallang/LocallangTransUnitIdQuestion.php index da0deb7..8a90826 100644 --- a/Classes/Command/Input/Question/Locallang/LocallangTransUnitIdQuestion.php +++ b/Classes/Command/Input/Question/Locallang/LocallangTransUnitIdQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.locallang')] readonly class LocallangTransUnitIdQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.locallang_trans_unit_id')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Middleware/MiddlewareClassNameQuestion.php b/Classes/Command/Input/Question/Middleware/MiddlewareClassNameQuestion.php index f73fe45..fdeb57e 100644 --- a/Classes/Command/Input/Question/Middleware/MiddlewareClassNameQuestion.php +++ b/Classes/Command/Input/Question/Middleware/MiddlewareClassNameQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.middleware')] readonly class MiddlewareClassNameQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.middleware-class')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Middleware/MiddlewareIdentifierQuestion.php b/Classes/Command/Input/Question/Middleware/MiddlewareIdentifierQuestion.php index 8ad1153..6a9890c 100644 --- a/Classes/Command/Input/Question/Middleware/MiddlewareIdentifierQuestion.php +++ b/Classes/Command/Input/Question/Middleware/MiddlewareIdentifierQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.middleware')] readonly class MiddlewareIdentifierQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.middleware-identifier')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Model/ModelClassNameQuestion.php b/Classes/Command/Input/Question/Model/ModelClassNameQuestion.php index 1e86b70..283d6d8 100644 --- a/Classes/Command/Input/Question/Model/ModelClassNameQuestion.php +++ b/Classes/Command/Input/Question/Model/ModelClassNameQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.model')] readonly class ModelClassNameQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.model-class')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Module/ModuleIdentifierQuestion.php b/Classes/Command/Input/Question/Module/ModuleIdentifierQuestion.php index 19ebd00..9e71913 100644 --- a/Classes/Command/Input/Question/Module/ModuleIdentifierQuestion.php +++ b/Classes/Command/Input/Question/Module/ModuleIdentifierQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.module')] readonly class ModuleIdentifierQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.module-identifier')] private iterable $inputHandlers, ) {} diff --git a/Classes/Command/Input/Question/Plugin/PluginNameQuestion.php b/Classes/Command/Input/Question/Plugin/PluginNameQuestion.php index eaf6bdb..6880b6a 100644 --- a/Classes/Command/Input/Question/Plugin/PluginNameQuestion.php +++ b/Classes/Command/Input/Question/Plugin/PluginNameQuestion.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Command\Input\Question\AbstractQuestion; use FriendsOfTYPO3\Kickstarter\Context\CommandContext; use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; #[AutoconfigureTag('ext-kickstarter.command.question.plugin')] readonly class PluginNameQuestion extends AbstractQuestion @@ -27,6 +28,7 @@ private const DESCRIPTION = []; public function __construct( + #[AutowireIterator('ext-kickstarter.inputHandler.plugin-name')] private iterable $inputHandlers, ) {} diff --git a/Classes/Service/Creator/CommandCreatorService.php b/Classes/Service/Creator/CommandCreatorService.php index 6bca1cb..8658e82 100644 --- a/Classes/Service/Creator/CommandCreatorService.php +++ b/Classes/Service/Creator/CommandCreatorService.php @@ -12,10 +12,12 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\CommandInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class CommandCreatorService { public function __construct( + #[AutowireIterator('ext-kickstarter.creator.command')] private iterable $commandCreators, ) {} diff --git a/Classes/Service/Creator/ControllerCreatorService.php b/Classes/Service/Creator/ControllerCreatorService.php index 2be8e86..c03e9a6 100644 --- a/Classes/Service/Creator/ControllerCreatorService.php +++ b/Classes/Service/Creator/ControllerCreatorService.php @@ -12,11 +12,14 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\ControllerInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class ControllerCreatorService { public function __construct( + #[AutowireIterator('ext-kickstarter.creator.controller.extbase')] private iterable $extbaseControllerCreators, + #[AutowireIterator('ext-kickstarter.creator.controller.native')] private iterable $nativeControllerCreators, ) {} diff --git a/Classes/Service/Creator/EventCreatorService.php b/Classes/Service/Creator/EventCreatorService.php index 7d29bc8..9365e6f 100644 --- a/Classes/Service/Creator/EventCreatorService.php +++ b/Classes/Service/Creator/EventCreatorService.php @@ -12,10 +12,12 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\EventInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class EventCreatorService { public function __construct( + #[AutowireIterator('ext-kickstarter.creator.event')] private iterable $eventCreators, ) {} diff --git a/Classes/Service/Creator/EventListenerCreatorService.php b/Classes/Service/Creator/EventListenerCreatorService.php index 62f74c8..2598b12 100644 --- a/Classes/Service/Creator/EventListenerCreatorService.php +++ b/Classes/Service/Creator/EventListenerCreatorService.php @@ -12,10 +12,12 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\EventListenerInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class EventListenerCreatorService { public function __construct( + #[AutowireIterator('ext-kickstarter.creator.event-listener')] private iterable $eventListenerCreators, ) {} diff --git a/Classes/Service/Creator/ExtensionCreatorService.php b/Classes/Service/Creator/ExtensionCreatorService.php index caa5268..796d8c3 100644 --- a/Classes/Service/Creator/ExtensionCreatorService.php +++ b/Classes/Service/Creator/ExtensionCreatorService.php @@ -14,6 +14,7 @@ use FriendsOfTYPO3\Kickstarter\Creator\Extension\ExtensionCreatorInterface; use FriendsOfTYPO3\Kickstarter\Information\ExtensionInformation; use FriendsOfTYPO3\Kickstarter\Information\ServicesConfigInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class ExtensionCreatorService { @@ -21,7 +22,9 @@ * @param iterable $extensionCreators */ public function __construct( + #[AutowireIterator('ext-kickstarter.creator.extension')] private iterable $extensionCreators, + #[AutowireIterator('ext-kickstarter.creator.servicesConfig')] private iterable $servicesConfigCreators, ) {} diff --git a/Classes/Service/Creator/LocallangCreatorService.php b/Classes/Service/Creator/LocallangCreatorService.php index d2f6054..8548304 100644 --- a/Classes/Service/Creator/LocallangCreatorService.php +++ b/Classes/Service/Creator/LocallangCreatorService.php @@ -13,6 +13,7 @@ use FriendsOfTYPO3\Kickstarter\Creator\Locallang\LocallangCreatorInterface; use FriendsOfTYPO3\Kickstarter\Information\LocallangInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class LocallangCreatorService { @@ -20,6 +21,7 @@ * @param iterable $locallangCreators */ public function __construct( + #[AutowireIterator('ext-kickstarter.creator.locallang')] private iterable $locallangCreators, ) {} diff --git a/Classes/Service/Creator/MiddlewareCreatorService.php b/Classes/Service/Creator/MiddlewareCreatorService.php index 59f755a..78d2fd5 100644 --- a/Classes/Service/Creator/MiddlewareCreatorService.php +++ b/Classes/Service/Creator/MiddlewareCreatorService.php @@ -13,6 +13,7 @@ use FriendsOfTYPO3\Kickstarter\Creator\Middleware\MiddlewareCreatorInterface; use FriendsOfTYPO3\Kickstarter\Information\MiddlewareInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class MiddlewareCreatorService { @@ -20,6 +21,7 @@ * @param iterable $middlewareCreators */ public function __construct( + #[AutowireIterator('ext-kickstarter.creator.middleware')] private iterable $middlewareCreators, ) {} diff --git a/Classes/Service/Creator/ModelCreatorService.php b/Classes/Service/Creator/ModelCreatorService.php index 9770269..0f5d25a 100644 --- a/Classes/Service/Creator/ModelCreatorService.php +++ b/Classes/Service/Creator/ModelCreatorService.php @@ -12,10 +12,12 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\ModelInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class ModelCreatorService { public function __construct( + #[AutowireIterator('ext-kickstarter.creator.domain.model')] private iterable $modelCreators, ) {} diff --git a/Classes/Service/Creator/ModuleCreatorService.php b/Classes/Service/Creator/ModuleCreatorService.php index 4ad7c87..12f22c7 100644 --- a/Classes/Service/Creator/ModuleCreatorService.php +++ b/Classes/Service/Creator/ModuleCreatorService.php @@ -12,11 +12,14 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\ModuleInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class ModuleCreatorService { public function __construct( + #[AutowireIterator('ext-kickstarter.creator.module.extbase')] private iterable $extbaseModuleCreators, + #[AutowireIterator('ext-kickstarter.creator.module.native')] private iterable $nativeModuleCreators, ) {} diff --git a/Classes/Service/Creator/PluginCreatorService.php b/Classes/Service/Creator/PluginCreatorService.php index 351df33..1bc0aaf 100644 --- a/Classes/Service/Creator/PluginCreatorService.php +++ b/Classes/Service/Creator/PluginCreatorService.php @@ -12,11 +12,14 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\PluginInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class PluginCreatorService { public function __construct( + #[AutowireIterator('ext-kickstarter.creator.plugin.extbase')] private iterable $extbasePluginCreators, + #[AutowireIterator('ext-kickstarter.creator.plugin.native')] private iterable $nativePluginCreators, ) {} diff --git a/Classes/Service/Creator/RepositoryCreatorService.php b/Classes/Service/Creator/RepositoryCreatorService.php index b914b56..5eafce5 100644 --- a/Classes/Service/Creator/RepositoryCreatorService.php +++ b/Classes/Service/Creator/RepositoryCreatorService.php @@ -12,10 +12,12 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\RepositoryInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class RepositoryCreatorService { public function __construct( + #[AutowireIterator('ext-kickstarter.creator.domain.repository')] private iterable $repositoryCreators, ) {} diff --git a/Classes/Service/Creator/ServicesConfigCreatorService.php b/Classes/Service/Creator/ServicesConfigCreatorService.php index e4042a4..e8cba1d 100644 --- a/Classes/Service/Creator/ServicesConfigCreatorService.php +++ b/Classes/Service/Creator/ServicesConfigCreatorService.php @@ -12,11 +12,13 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\ServicesConfigInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; -class ServicesConfigCreatorService +readonly class ServicesConfigCreatorService { public function __construct( - private readonly iterable $servicesConfigCreators, + #[AutowireIterator('ext-kickstarter.creator.servicesConfig')] + private iterable $servicesConfigCreators, ) {} public function create(ServicesConfigInformation $servicesConfigInformation): void diff --git a/Classes/Service/Creator/SitePackageCreatorService.php b/Classes/Service/Creator/SitePackageCreatorService.php index a0a05fa..b25c2ac 100644 --- a/Classes/Service/Creator/SitePackageCreatorService.php +++ b/Classes/Service/Creator/SitePackageCreatorService.php @@ -13,6 +13,7 @@ use FriendsOfTYPO3\Kickstarter\Creator\SitePackage\SitePackageCreatorInterface; use FriendsOfTYPO3\Kickstarter\Information\SitePackageInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class SitePackageCreatorService { @@ -20,6 +21,7 @@ * @param iterable $sitePackageCreators */ public function __construct( + #[AutowireIterator('ext-kickstarter.creator.property.site-package')] private iterable $sitePackageCreators, ) {} diff --git a/Classes/Service/Creator/SiteSetCreatorService.php b/Classes/Service/Creator/SiteSetCreatorService.php index f6baa44..64e8b6b 100644 --- a/Classes/Service/Creator/SiteSetCreatorService.php +++ b/Classes/Service/Creator/SiteSetCreatorService.php @@ -13,6 +13,7 @@ use FriendsOfTYPO3\Kickstarter\Creator\SiteSet\SiteSetCreatorInterface; use FriendsOfTYPO3\Kickstarter\Information\SiteSetInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class SiteSetCreatorService { @@ -20,6 +21,7 @@ * @param iterable $siteSetCreators */ public function __construct( + #[AutowireIterator('ext-kickstarter.creator.site-set')] private iterable $siteSetCreators, ) {} diff --git a/Classes/Service/Creator/SiteSettingsDefinitionCreatorService.php b/Classes/Service/Creator/SiteSettingsDefinitionCreatorService.php index 8409814..1a1b2a5 100644 --- a/Classes/Service/Creator/SiteSettingsDefinitionCreatorService.php +++ b/Classes/Service/Creator/SiteSettingsDefinitionCreatorService.php @@ -13,6 +13,7 @@ use FriendsOfTYPO3\Kickstarter\Creator\SiteSet\SiteSettingsDefinitionCreatorInterface; use FriendsOfTYPO3\Kickstarter\Information\SiteSettingsDefinitionInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class SiteSettingsDefinitionCreatorService { @@ -20,6 +21,7 @@ * @param iterable $siteSettingDefinitionCreators */ public function __construct( + #[AutowireIterator('ext-kickstarter.creator.site-settings-definition')] private iterable $siteSettingDefinitionCreators, ) {} diff --git a/Classes/Service/Creator/TableCreatorService.php b/Classes/Service/Creator/TableCreatorService.php index 3762d2b..2fb77fd 100644 --- a/Classes/Service/Creator/TableCreatorService.php +++ b/Classes/Service/Creator/TableCreatorService.php @@ -12,10 +12,12 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\TableInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class TableCreatorService { public function __construct( + #[AutowireIterator('ext-kickstarter.creator.tca.table')] private iterable $tableCreators, ) {} diff --git a/Classes/Service/Creator/TestEnvCreatorService.php b/Classes/Service/Creator/TestEnvCreatorService.php index 49c5590..61c0681 100644 --- a/Classes/Service/Creator/TestEnvCreatorService.php +++ b/Classes/Service/Creator/TestEnvCreatorService.php @@ -12,10 +12,12 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\TestEnvInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class TestEnvCreatorService { public function __construct( + #[AutowireIterator('ext-kickstarter.creator.test.env')] private iterable $testEnvCreators, ) {} diff --git a/Classes/Service/Creator/TypeConverterCreatorService.php b/Classes/Service/Creator/TypeConverterCreatorService.php index ea6b50e..e412de2 100644 --- a/Classes/Service/Creator/TypeConverterCreatorService.php +++ b/Classes/Service/Creator/TypeConverterCreatorService.php @@ -12,10 +12,12 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\TypeConverterInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class TypeConverterCreatorService { public function __construct( + #[AutowireIterator('ext-kickstarter.creator.property.type-converter')] private iterable $typeConverterCreators, ) {} diff --git a/Classes/Service/Creator/UpgradeWizardCreatorService.php b/Classes/Service/Creator/UpgradeWizardCreatorService.php index 9b244ee..7f43cec 100644 --- a/Classes/Service/Creator/UpgradeWizardCreatorService.php +++ b/Classes/Service/Creator/UpgradeWizardCreatorService.php @@ -12,10 +12,12 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\UpgradeWizardInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class UpgradeWizardCreatorService { public function __construct( + #[AutowireIterator('ext-kickstarter.creator.upgrade-wizard')] private iterable $upgradeCreators, ) {} diff --git a/Classes/Service/Creator/ValidatorCreatorService.php b/Classes/Service/Creator/ValidatorCreatorService.php index 068bf6b..e73efcd 100644 --- a/Classes/Service/Creator/ValidatorCreatorService.php +++ b/Classes/Service/Creator/ValidatorCreatorService.php @@ -12,10 +12,12 @@ namespace FriendsOfTYPO3\Kickstarter\Service\Creator; use FriendsOfTYPO3\Kickstarter\Information\ValidatorInformation; +use Symfony\Component\DependencyInjection\Attribute\AutowireIterator; readonly class ValidatorCreatorService { public function __construct( + #[AutowireIterator('ext-kickstarter.creator.domain.validator')] private iterable $validatorCreators, ) {} diff --git a/Configuration/Services.yaml b/Configuration/Services.yaml index 6d1f465..9155e3e 100644 --- a/Configuration/Services.yaml +++ b/Configuration/Services.yaml @@ -98,75 +98,6 @@ services: arguments: $questionCollection: '@questions.validator' - ###################### - ## CREATOR SERVICES ## - ###################### - - FriendsOfTYPO3\Kickstarter\Service\Creator\CommandCreatorService: - arguments: - $commandCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.command' } - FriendsOfTYPO3\Kickstarter\Service\Creator\ControllerCreatorService: - arguments: - $extbaseControllerCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.controller.extbase' } - $nativeControllerCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.controller.native' } - FriendsOfTYPO3\Kickstarter\Service\Creator\MiddlewareCreatorService: - arguments: - $middlewareCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.middleware' } - FriendsOfTYPO3\Kickstarter\Service\Creator\ModelCreatorService: - arguments: - $modelCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.domain.model' } - FriendsOfTYPO3\Kickstarter\Service\Creator\RepositoryCreatorService: - arguments: - $repositoryCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.domain.repository' } - FriendsOfTYPO3\Kickstarter\Service\Creator\ValidatorCreatorService: - arguments: - $validatorCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.domain.validator' } - FriendsOfTYPO3\Kickstarter\Service\Creator\EventCreatorService: - arguments: - $eventCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.event' } - FriendsOfTYPO3\Kickstarter\Service\Creator\EventListenerCreatorService: - arguments: - $eventListenerCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.event-listener' } - FriendsOfTYPO3\Kickstarter\Service\Creator\ExtensionCreatorService: - arguments: - $extensionCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.extension' } - $servicesConfigCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.servicesConfig' } - FriendsOfTYPO3\Kickstarter\Service\Creator\LocallangCreatorService: - arguments: - $locallangCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.locallang' } - FriendsOfTYPO3\Kickstarter\Service\Creator\PluginCreatorService: - arguments: - $extbasePluginCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.plugin.extbase' } - $nativePluginCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.plugin.native' } - FriendsOfTYPO3\Kickstarter\Service\Creator\ModuleCreatorService: - arguments: - $extbaseModuleCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.module.extbase' } - $nativeModuleCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.module.native' } - FriendsOfTYPO3\Kickstarter\Service\Creator\TypeConverterCreatorService: - arguments: - $typeConverterCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.property.type-converter' } - FriendsOfTYPO3\Kickstarter\Service\Creator\SitePackageCreatorService: - arguments: - $sitePackageCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.property.site-package' } - FriendsOfTYPO3\Kickstarter\Service\Creator\ServicesConfigCreatorService: - arguments: - $servicesConfigCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.servicesConfig' } - FriendsOfTYPO3\Kickstarter\Service\Creator\SiteSetCreatorService: - arguments: - $siteSetCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.site-set' } - FriendsOfTYPO3\Kickstarter\Service\Creator\SiteSettingsDefinitionCreatorService: - arguments: - $siteSettingDefinitionCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.site-settings-definition' } - FriendsOfTYPO3\Kickstarter\Service\Creator\TableCreatorService: - arguments: - $tableCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.tca.table' } - FriendsOfTYPO3\Kickstarter\Service\Creator\TestEnvCreatorService: - arguments: - $testEnvCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.test.env' } - FriendsOfTYPO3\Kickstarter\Service\Creator\UpgradeWizardCreatorService: - arguments: - $upgradeCreators: !tagged_iterator { tag: 'ext-kickstarter.creator.upgrade-wizard' } - ############### ## QUESTIONS ## ############### @@ -278,83 +209,3 @@ services: class: FriendsOfTYPO3\Kickstarter\Command\Input\QuestionCollection arguments: $questions: !tagged_iterator { tag: 'ext-kickstarter.command.question.validator' } - - ########################### - ## ASSIGN INPUT HANDLERS ## - ########################### - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Command\CommandAliasQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.command-name' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Command\CommandClassNameQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.command-class' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Command\CommandNameQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.command-name' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Controller\ActionMethodNameQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.controller-action' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Controller\ControllerClassNameQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.controller-class' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Extension\ComposerNameQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.composer_name' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Extension\EmailQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.email' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Extension\ExtensionKeyQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.extension_key' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Extension\NamespaceQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.namespace' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Extension\VersionQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.version' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Event\EventClassNameQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.event-class' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\EventListener\EventListenerClassNameQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.event-listener-class' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Locallang\LocallangFileNameQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.locallang_file_name' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Locallang\LocallangTransUnitIdQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.locallang_trans_unit_id' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Middleware\MiddlewareClassNameQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.middleware-class' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Middleware\MiddlewareIdentifierQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.middleware-identifier' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Model\ModelClassNameQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.model-class' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Module\ModuleIdentifierQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.module-identifier' } - - FriendsOfTYPO3\Kickstarter\Command\Input\Question\Plugin\PluginNameQuestion: - arguments: - $inputHandlers: !tagged_iterator { tag: 'ext-kickstarter.inputHandler.plugin-name' }