File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,13 @@ adding a ``setDefined()`` method. The recommended check in this case would be::
189189 // code for the new OptionsResolver API
190190 }
191191
192+ .. tip ::
193+
194+ There is one case when you actually can rely on the
195+ ``Symfony\Component\HttpKernel\Kernel::VERSION_ID `` constant: when trying
196+ to detect the version of the ``symfony/http-kernel `` component, because it
197+ is the component where this constant is defined.
198+
192199.. _`symfony/phpunit-bridge package` : https://github.com/symfony/phpunit-bridge
193200.. _`Official Symfony Guide to Upgrade from 2.x to 3.0` : https://github.com/symfony/symfony/blob/2.8/UPGRADE-3.0.md
194201.. _`SensioLabs DeprecationDetector` : https://github.com/sensiolabs-de/deprecation-detector
You can’t perform that action at this time.
0 commit comments