Skip to content

Conversation

@holiq
Copy link
Owner

@holiq holiq commented Oct 3, 2025

No description provided.

@holiq holiq requested a review from Copilot October 3, 2025 08:50
@holiq holiq self-assigned this Oct 3, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the --with-dto option to the make:action command, enabling automatic generation of DTOs when creating actions. The feature allows developers to specify a DTO class that will be automatically created and integrated with the action.

  • Adds --with-dto option to the action make command for automatic DTO generation
  • Updates placeholder system to support DTO import and basename resolution
  • Modifies namespace resolution to handle optional endsWith parameter

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
stubs/action-dto.stub New stub template for actions that use DTOs with proper type hints
src/Support/Source.php Updates namespace resolution logic to support optional endsWith parameter
src/DataTransferObjects/PlaceholderData.php Adds new fields for DTO import class and basename placeholders
src/DataTransferObjects/NamespaceData.php Adds optional endsWith parameter for namespace construction
src/Commands/Concerns/HasOptions.php Implements resolveWithDtoOption method with validation
src/Commands/ActionMakeCommand.php Integrates DTO option functionality and placeholder resolution

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@holiq holiq requested a review from Copilot October 4, 2025 01:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@holiq holiq merged commit 3a2830e into main Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants