Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



This pull request makes several improvements to command registration and code consistency, as well as updates to GraphQL type classes for dependency injection. The most significant changes are the migration to Symfony's attribute-based command registration, explicit return type declarations, and the replacement of Symfony's dependency injection interfaces with Pimcore's equivalents in GraphQL type classes.
Command Registration and Configuration
MigrateLegacyConfigandRebuildWorkspacesCommandfrom method-based configuration to the SymfonyAsCommandattribute, simplifying command definitions. [1] [2]configure()methods in both command classes, as configuration is now handled by attributes. [1] [2]Code Consistency and Type Safety
executemethods in both command classes to explicitly declareintas the return type, aligning with Symfony standards and improving type safety. [1] [2]ConfigController, replaced direct request parameter access withParameterBagHelper::getIntfor safer integer retrieval.Dependency Injection in GraphQL Types
Symfony\Component\DependencyInjection\ContainerAwareInterfaceandContainerAwareTraitwith Pimcore's equivalents (Pimcore\Bundle\CoreBundle\DependencyInjection\ContainerAwareInterfaceandContainerAwareTrait) across multiple GraphQL type classes for consistency within the Pimcore codebase. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]$containerinDocumentElementType, as the trait now handles this.