-
-
Notifications
You must be signed in to change notification settings - Fork 356
[RFC] use singular folder pattern like other components codes #2743
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
base: 2.x
Are you sure you want to change the base?
Conversation
@@ -23,7 +23,7 @@ And (2) a template: | |||
|
|||
.. code-block:: html+twig | |||
|
|||
{# templates/components/Alert.html.twig #} | |||
{# templates/component/Alert.html.twig #} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
templates has a "s" marking plural, similarely here to me it should stay plural
@@ -7,7 +7,7 @@ making it easier to render and re-use small template "units" - like an | |||
|
|||
Every component consists of (1) a class:: | |||
|
|||
// src/Twig/Components/Alert.php | |||
// src/Twig/Component/Alert.php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// src/Twig/Component/Alert.php | |
// src/Twig/Component/Alert.php |
Something we will discuss in 3.0 .. but i totally agree.
To be fair, i even think we should use src/Component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for the namespace (but not now)
👎 for the template folder
top for php file and ok for twig file makes sens |
opening this PR mostly as RFC
other code in sf document to create special code (messenger message, event listener|subscriber, etc) inside folders in singular form not plural
does It makes sens for twig component to follow this pattern ?