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

[TwigComponent] Add documentation for MakerBundle installation #1923

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from

Conversation

techSolstice
Copy link

Q A
Bug fix? no
New feature? no
Issues Fix #480
License MIT

docs: Add documentation for a quick way to get the component boilerplate in.

docs: Document a quick way to get the component boilerplate in.
@@ -72,6 +94,8 @@ file to control the template directory for your components:
# Namespace & directory for components
App\Twig\Components\: 'components/'

That's it! We're ready to go!
Copy link
Collaborator

Choose a reason for hiding this comment

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

I prefer the way it was before. For most of new users, composer require will be enough.


Success!

This will also setup the config.
Copy link
Collaborator

Choose a reason for hiding this comment

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

What do you mean here ? How does the maker bundle set the local config ?

Comment on lines +80 to +81
Similarly, to make a `live component`_, enter ``yes`` when prompted whether
to make this a live component.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think we should talk about LiveComponent that early in the page.

@smnandre
Copy link
Collaborator

Thank you for the suggestion, @techSolstice.

My primary concern with the current implementation is that using the maker is not strictly related to “installation.”

If we want to document it, I suggest we create a dedicated section, similar to how it’s done for controllers: Symfony Documentation - Generating Controllers.

Would you be able to adapt this PR in that direction?

@smnandre smnandre added docs Improvements or additions to documentation Status: Needs Work Additional work is needed labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation Status: Needs Review Needs to be reviewed Status: Needs Work Additional work is needed TwigComponent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Live][Twig] document make:twig-component
3 participants