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

Add specific tip about the http-kernel component #6979

Merged
merged 1 commit into from
Sep 27, 2016
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
7 changes: 7 additions & 0 deletions setup/bundles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ adding a ``setDefined()`` method. The recommended check in this case would be::
// code for the new OptionsResolver API
}

.. tip::

There is one case when you actually can rely on the
``Symfony\Component\HttpKernel\Kernel::VERSION_ID`` constant: when trying
to detect the version of the ``symfony/http-kernel`` component, because it
is the component where this constant is defined.

.. _`symfony/phpunit-bridge package`: https://github.com/symfony/phpunit-bridge
.. _`Official Symfony Guide to Upgrade from 2.x to 3.0`: https://github.com/symfony/symfony/blob/2.8/UPGRADE-3.0.md
.. _`SensioLabs DeprecationDetector`: https://github.com/sensiolabs-de/deprecation-detector
Expand Down