-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Reference] Document AppKernel config settings #2217
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
Conversation
it is used in the name of the generated classes (for the container and the routing classes) to avoid clashes when using several kernels. |
* :doc:`Twig </reference/configuration/twig>` | ||
* :doc:`Monolog </reference/configuration/monolog>` | ||
* :doc:`Web_profiler </reference/configuration/web_profiler>` | ||
* :doc:`Configuration in the Kernel </reference/configuration/kernel>` |
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.
this should be placed elsewhere IMO as this is not something you configure in config.yml
like the others so it could be confusing
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.
@stof but is some sort of configuration for the complete project. We may put a new line between these 2 lists, to make it clear it is something else, or do you have a better idea?
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.
Maybe just add it as its own standalone bullet point below this list (so a sibling to * **Forms and Validation**
) - we can try it there and see how it looks.
@stof thanks for the information. Is it usefull to document how to change this, as it doesn't look like a thing you want to change? |
@wouterj not really. The name does not really matters to you. The case where it is useful is having several kernels (in which case you still don't care about the values as long as they are different) but the default value should be still enough most of the time as the easiest way to achieve multiple kernels (i.e. without having to overwrite lots of stuff) is simply to duplicate the structure of the |
[Reference] Document AppKernel config settings
Todo
We can configure some things by overriding methods of the
Kernel
in theAppKernel
, I think we should document those. This way, we can document how to set the charset in Symfony2.1 (see #1519).I don't understand where the name of the Kernel is used for, so I didn't include a description for that currently. Can someone (@stof ?) tell me where this is used?