Streamline apiato:generate:container
by Removing Default Generated Tasks
#757
mderis
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea and motivation: @Mohammad-Alavi ❤️
Summary
I propose modifying the
apiato:generate:container
command to remove the default generated tasks. Instead, developers can directly utilize repository methods within action classes, thereby reducing unnecessary boilerplate and simplifying the codebase.Motivation
The current implementation of the container generator command creates default tasks, which often results in redundant boilerplate code. By allowing action classes to access repository methods directly, we can streamline the development process and enhance code maintainability. This approach is also in line with the Porto architecture, which does not forbid accessing repositories from actions. Therefore, simplifying the code by removing tasks that duplicate repository logic is both permissible and beneficial.
Proposed Changes
apiato:generate:container
command to exclude default task generation.Additional Reasons
apiato:generate:task
) will remain available for any use case where tasks are beneficial, providing developers with the flexibility to use tasks as needed.Implementation Plan
apiato:generate:container
command to exclude default tasks.Feedback Request
We value the community's input on this proposal. Specifically, we would like to hear:
Thank you for your feedback and support in making Apiato better for everyone!
Beta Was this translation helpful? Give feedback.
All reactions