Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(console): add make:view command #864

Merged
merged 6 commits into from
Jan 9, 2025

Conversation

gturpin-dev
Copy link
Contributor

This PR adds the make:view command
This PR check a TODO on #759

I'm not familiar with the view system in Tempest so I need detailed review on stubs and supported generated classes.
That being said, I currently support the creation of a basic view file like this :
make:view home => this will ask for home.view.php path and then creates an empty php file
make:view HomeView class => this second enum parameter will specify that we want to create the view class documented here https://tempestphp.com/docs/framework/views/#view-objects

I don't know if more view class are needed for this command, but I think this is something that can be added when needed 😄

src/Tempest/View/src/Commands/MakeViewCommand.php Outdated Show resolved Hide resolved
src/Tempest/View/src/Commands/MakeViewCommand.php Outdated Show resolved Hide resolved
gturpin-dev and others added 2 commits December 23, 2024 09:28
Co-authored-by: Enzo Innocenzi <enzo@innocenzi.dev>
Co-authored-by: Enzo Innocenzi <enzo@innocenzi.dev>
@brendt brendt dismissed innocenzi’s stale review January 9, 2025 09:30

Brent reviewed

@brendt brendt merged commit a4ab813 into tempestphp:main Jan 9, 2025
63 checks passed
@brendt
Copy link
Member

brendt commented Jan 9, 2025

Awesome!

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.

3 participants