Skip to content

Commit bcab77b

Browse files
committed
bump Symfony requirements to PHP 5.5
1 parent 6ef6a04 commit bcab77b

File tree

15 files changed

+25
-85
lines changed

15 files changed

+25
-85
lines changed

book/controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Controllers are also called *actions*.
116116

117117
This controller is pretty straightforward:
118118

119-
* *line 4*: Symfony takes advantage of PHP 5.3 namespace functionality to
119+
* *line 4*: Symfony takes advantage of PHP's namespace functionality to
120120
namespace the entire controller class. The ``use`` keyword imports the
121121
``Response`` class, which the controller must return.
122122

@@ -559,7 +559,7 @@ Symfony will automatically return a 500 HTTP response code.
559559
throw new \Exception('Something went wrong!');
560560
561561
In every case, an error page is shown to the end user and a full debug
562-
error page is shown to the developer (i.e. when you're using ``app_dev.php`` -
562+
error page is shown to the developer (i.e. when you're using ``app_dev.php`` -
563563
see :ref:`page-creation-environments`).
564564

565565
You'll want to customize the error page your user sees. To do that, see the

book/installation.rst

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ Using the Symfony Installer is the only recommended way to create new Symfony
1616
applications. This installer is a PHP application that has to be installed
1717
only once and then it can create any number of Symfony applications.
1818

19-
.. note::
20-
21-
The installer requires PHP 5.4 or higher. If you still use the legacy
22-
PHP 5.3 version, you cannot use the Symfony Installer. Read the
23-
:ref:`book-creating-applications-without-the-installer` section to learn how
24-
to proceed.
25-
2619
Depending on your operating system, the installer must be installed in different
2720
ways.
2821

@@ -107,9 +100,8 @@ to use for your projects.
107100
Creating Symfony Applications without the Installer
108101
---------------------------------------------------
109102

110-
If you still use PHP 5.3, or if you can't execute the installer for any reason,
111-
you can create Symfony applications using the alternative installation method
112-
based on `Composer`_.
103+
If you can't execute the installer for any reason, you can create Symfony
104+
applications using the alternative installation method based on `Composer`_.
113105

114106
Composer is the dependency manager used by modern PHP applications and it can
115107
also be used to create new applications based on the Symfony framework. If you
@@ -168,12 +160,6 @@ possible solutions depending on your operating system. All of them are
168160
explained in the :ref:`Setting up Permissions <book-installation-permissions>`
169161
section.
170162

171-
.. note::
172-
173-
PHP's internal web server is available in PHP 5.4 or higher versions. If you
174-
still use the legacy PHP 5.3 version, you'll have to configure a *virtual host*
175-
in your web server.
176-
177163
The ``server:run`` command is only suitable while developing the application. In
178164
order to run Symfony applications on production servers, you'll have to configure
179165
your `Apache`_ or `Nginx`_ web server as explained in

book/security.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,6 @@ else, you'll want to encode their passwords. The best algorithm to use is
486486
// ...
487487
));
488488
489-
.. include:: /cookbook/security/_ircmaxwell_password-compat.rst.inc
490-
491489
Of course, your user's passwords now need to be encoded with this exact algorithm.
492490
For hardcoded users, you can use an `online tool`_, which will give you something
493491
like this:

book/translation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ checks translation resources for several locales:
405405

406406
.. note::
407407

408-
When Symfony doesn't find a translation in the given locale, it will
409-
add the missing translation to the log file. For details,
408+
When Symfony doesn't find a translation in the given locale, it will
409+
add the missing translation to the log file. For details,
410410
see :ref:`reference-framework-translator-logging`.
411411

412412
.. _book-translation-user-locale:
@@ -664,8 +664,8 @@ Translating Database Content
664664
----------------------------
665665

666666
The translation of database content should be handled by Doctrine through
667-
the `Translatable Extension`_ or the `Translatable Behavior`_ (PHP 5.4+).
668-
For more information, see the documentation for these libraries.
667+
the `Translatable Extension`_ or the `Translatable Behavior`_. For more information,
668+
see the documentation for these libraries.
669669

670670
Debugging Translations
671671
----------------------

components/http_foundation/session_configuration.rst

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -218,23 +218,6 @@ particular cookie by reading the ``getLifetime()`` method::
218218
The expiry time of the cookie can be determined by adding the created
219219
timestamp and the lifetime.
220220

221-
PHP 5.4 Compatibility
222-
~~~~~~~~~~~~~~~~~~~~~
223-
224-
Since PHP 5.4.0, :phpclass:`SessionHandler` and :phpclass:`SessionHandlerInterface`
225-
are available. Symfony provides forward compatibility for the :phpclass:`SessionHandlerInterface`
226-
so it can be used under PHP 5.3. This greatly improves interoperability with other
227-
libraries.
228-
229-
:phpclass:`SessionHandler` is a special PHP internal class which exposes native save
230-
handlers to PHP user-space.
231-
232-
In order to provide a solution for those using PHP 5.4, Symfony has a special
233-
class called :class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\NativeSessionHandler`
234-
which under PHP 5.4, extends from ``\SessionHandler`` and under PHP 5.3 is just a
235-
empty base class. This provides some interesting opportunities to leverage
236-
PHP 5.4 functionality if it is available.
237-
238221
Save Handler Proxy
239222
~~~~~~~~~~~~~~~~~~
240223

contributing/code/patches.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Before working on Symfony, setup a friendly environment with the following
1414
software:
1515

1616
* Git;
17-
* PHP version 5.3.3 or above;
17+
* PHP version 5.5.9 or above;
1818
* `PHPUnit`_ 4.2 or above.
1919

2020
Configure Git

cookbook/bundles/best_practices.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ Bundle Name
2929
-----------
3030

3131
A bundle is also a PHP namespace. The namespace must follow the technical
32-
interoperability `standards`_ for PHP 5.3 namespaces and class names: it
33-
starts with a vendor segment, followed by zero or more category segments, and
34-
it ends with the namespace short name, which must end with a ``Bundle``
35-
suffix.
32+
interoperability `standards`_ for PHP namespaces and class names: it starts
33+
with a vendor segment, followed by zero or more category segments, and it
34+
ends with the namespace short name, which must end with a ``Bundle`` suffix.
3635

3736
A namespace becomes a bundle as soon as you add a bundle class to it. The
3837
bundle class name must follow these simple rules:
@@ -348,7 +347,7 @@ there are 3 modes, which the user can configure in their project:
348347
* 2.4: the original 2.4 and earlier validation API;
349348
* 2.5: the new 2.5 and later validation API;
350349
* 2.5-BC: the new 2.5 API with a backwards-compatible layer so that the
351-
2.4 API still works. This is only available in PHP 5.3.9+.
350+
2.4 API still works.
352351

353352
As a bundle author, you'll want to support *both* API's, since some users
354353
may still be using the 2.4 API. Specifically, if your bundle adds a violation

cookbook/deployment/azure-website.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@ and how to properly configure PHP for a production environment.
9696
Configuring the latest PHP Runtime
9797
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9898

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

103102
To update your PHP version on Azure, go to the **Configure** tab of the control
104103
panel and select the version you want.

cookbook/logging/monolog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
How to Use Monolog to Write Logs
55
================================
66

7-
Monolog_ is a logging library for PHP 5.3 used by Symfony. It is
8-
inspired by the Python LogBook library.
7+
Monolog_ is a logging library for PHP used by Symfony. It is inspired by the
8+
Python LogBook library.
99

1010
Usage
1111
-----

cookbook/security/_ircmaxwell_password-compat.rst.inc

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)