Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[2.7] bumped min PHP version to 5.3.9 #4807

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
May 23, 2015
Merged
Show file tree
Hide file tree
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
8 changes: 7 additions & 1 deletion contributing/code/patches.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ Before working on Symfony, setup a friendly environment with the following
software:

* Git;
* PHP version 5.3.3 or above;
* PHP version 5.3.9 or above;
* `PHPUnit`_ 4.2 or above.

.. caution::

Before Symfony 2.7, the minimal PHP version was 5.3.3. Please keep
this in mind, if you are working on a bug fix for earlier versions
of Symfony.

Configure Git
~~~~~~~~~~~~~

Expand Down
7 changes: 7 additions & 0 deletions cookbook/bundles/best_practices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,13 @@ there are 3 modes, which the user can configure in their project:
* 2.5-BC: the new 2.5 API with a backwards-compatible layer so that the
2.4 API still works. This is only available in PHP 5.3.9+.

.. note::

Starting with Symfony 2.7, the support for the 2.4 API has been
dropped and the minimal PHP version required for Symfony was
increased to 5.3.9. If your bundles requires Symfony >=2.7, you
don't need to take care about the 2.4 API anymore.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should only document the 2.5 and the 2.5-BC modes. The 2.4 mode in fact has no added value (related to #4804).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xabbuh my plan for Sunday is to drop the distinction between 2.5 and 2.5-BC, moving the BC layer in the 2.5 implementation itself (the only reason why we have separate implementations in 2.5 and 2.6 is because we decided to avoid bumping the Symfony requirement at this time and the BC layer cannot be implemented before 5.3.9. Bumping the requirement allows us to have a much better experience (allowing to have the new API always available while still having the BC layer all the time)


As a bundle author, you'll want to support *both* API's, since some users
may still be using the 2.4 API. Specifically, if your bundle adds a violation
directly to the :class:`Symfony\\Component\\Validator\\Context\\ExecutionContext`
Expand Down
2 changes: 1 addition & 1 deletion cookbook/deployment/azure-website.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ and how to properly configure PHP for a production environment.
Configuring the latest PHP Runtime
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Even though Symfony only requires PHP 5.3.3 to run, it's always recommended
Even though Symfony only requires PHP 5.3.9 to run, it's always recommended
to use the most recent PHP version whenever possible. PHP 5.3 is no longer
supported by the PHP core team, but you can update it easily in Azure.

Expand Down
10 changes: 5 additions & 5 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -707,17 +707,17 @@ api
Starting with Symfony 2.5, the Validator component introduced a new validation
API. The ``api`` option is used to switch between the different implementations:

``2.4``
Use the vaidation API that is compatible with older Symfony versions.

``2.5``
Use the validation API introduced in Symfony 2.5.

``2.5-bc`` or ``auto``
If you omit a value or set the ``api`` option to ``2.5-bc`` or ``auto``,
Symfony will use an API implementation that is compatible with both the
legacy implementation and the ``2.5`` implementation. You have to use
PHP 5.3.9 or higher to be able to use this implementation.
legacy ``2.4`` implementation and the ``2.5`` implementation.

.. note::

The support for the native 2.4 API has been dropped since Symfony 2.7.

To capture these logs in the ``prod`` environment, configure a
:doc:`channel handler </cookbook/logging/channels_handlers>` in ``config_prod.yml`` for
Expand Down