8000 Deprecated the kernel.name parameter by javiereguiluz · Pull Request #10581 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Deprecated the kernel.name parameter #10581

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

Merged
merged 1 commit into from
Oct 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions reference/configuration/kernel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ Kernel Name
**type**: ``string`` **default**: ``src`` (i.e. the directory name holding
the kernel class)

.. versionadded:: 4.2
The ``kernel.name`` parameter and the ``Kernel::getName()`` method were
deprecated in Symfony 4.2. If you need a unique ID for your kernels use the
``kernel.container_class`` parameter or the ``Kernel::getContainerClass()`` method.

To change this setting, override the :method:`Symfony\\Component\\HttpKernel\\Kernel::getName`
method. Alternatively, move your kernel into a different directory. For
example, if you moved the kernel into a ``foo/`` directory (instead of ``src/``),
Expand Down
0