Skip to content

Commit 7a64f05

Browse files
committed
feature #5948 Update 3.0 docs accordingly to min PHP version requirement (ogizanagi)
This PR was merged into the 3.0 branch. Discussion ---------- Update 3.0 docs accordingly to min PHP version requirement | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 3.0+ | Fixed tickets | #5947 I'm not sure about the politic regarding the removal of anything mentioning earlier version of PHP for the 3.0 docs ? Should it be reverted ? Regarding this PR: #5585, it's seems coherent to me to do the same for PHP versions. Commits ------- d577848 Update docs accordingly to min PHP version requirement
2 parents 3083e90 + d577848 commit 7a64f05

File tree

13 files changed

+12
-64
lines changed

13 files changed

+12
-64
lines changed

book/forms.rst

+1-3
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ from inside a controller::
9595

9696
$form = $this->createFormBuilder($task)
9797
->add('task', TextType::class)
98-
// If you use PHP 5.3 or 5.4 you must use
99-
// ->add('task', 'Symfony\Component\Form\Extension\Core\Type\TextType')
10098
->add('dueDate', DateType::class)
10199
->add('save', SubmitType::class, array('label' => 'Create Task'))
102100
->getForm();
@@ -1978,4 +1976,4 @@ Learn more from the Cookbook
19781976
.. _`form_div_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
19791977
.. _`Cross-site request forgery`: http://en.wikipedia.org/wiki/Cross-site_request_forgery
19801978
.. _`view on GitHub`: https://github.com/symfony/symfony/tree/master/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form
1981-
.. _`2.8 UPGRADE Log`: https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.8.md#form
1979+
.. _`2.8 UPGRADE Log`: https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.8.md#form

book/security.rst

-2
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,6 @@ else, you'll want to encode their passwords. The best algorithm to use is
510510
// ...
511511
));
512512
513-
.. include:: /cookbook/security/_ircmaxwell_password-compat.rst.inc
514-
515513
Of course, your users' passwords now need to be encoded with this exact algorithm.
516514
For hardcoded users, you can use an `online tool`_, which will give you something
517515
like this:

components/dom_crawler.rst

-6
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,6 @@ and :phpclass:`DOMNode` objects:
300300

301301
The ``html`` method is new in Symfony 2.3.
302302

303-
.. caution::
304-
305-
Due to an issue in PHP, the ``html()`` method returns wrongly decoded HTML
306-
entities in PHP versions lower than 5.3.6 (for example, it returns ````
307-
instead of ``•``).
308-
309303
Links
310304
~~~~~
311305

components/form/introduction.rst

+1-6
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,6 @@ is created from the form factory.
398398
399399
$form = $formFactory->createBuilder()
400400
->add('task', TextType::class)
401-
// If you use PHP 5.3 or 5.4, you must use
402-
// ->add('task', 'Symfony\Component\Form\Extension\Core\Type\TextType')
403401
->add('dueDate', DateType::class)
404402
->getForm();
405403
@@ -426,8 +424,6 @@ is created from the form factory.
426424
427425
$form = $this->createFormBuilder()
428426
->add('task', TextType::class)
429-
// If you use PHP 5.3 or 5.4, you must use
430-
// ->add('task', 'Symfony\Component\Form\Extension\Core\Type\TextType')
431427
->add('dueDate', DateType::class)
432428
->getForm();
433429
@@ -439,8 +435,7 @@ is created from the form factory.
439435
440436
As you can see, creating a form is like writing a recipe: you call ``add``
441437
for each new field you want to create. The first argument to ``add`` is the
442-
name of your field, and the second is the fully qualified class name. If you
443-
use PHP 5.5 or above, you can use ``::class`` constant of a form type. The Form
438+
name of your field, and the second is the fully qualified class name. The Form
444439
component comes with a lot of :doc:`built-in types </reference/forms/types>`.
445440

446441
Now that you've built your form, learn how to :ref:`render <component-form-intro-rendering-form>`

components/var_dumper/introduction.rst

-5
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,6 @@ Example::
145145
}
146146
}
147147

148-
.. tip::
149-
150-
If you still use PHP 5.3, you can extend the
151-
:class:`Symfony\\Component\\VarDumper\\Test\\VarDumperTestClass` instead.
152-
153148
Dump Examples and Output
154149
------------------------
155150

contributing/code/patches.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Before working on Symfony, setup a friendly environment with the following
1414
software:
1515

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

2020
.. caution::
2121

22-
Before Symfony 2.7, the minimal PHP version was 5.3.3. Please keep
23-
this in mind, if you are working on a bug fix for earlier versions
24-
of Symfony.
22+
Before Symfony 2.7, the minimal PHP version was 5.3.3. Before Symfony 3.0,
23+
minimal version was 5.3.9. Please keep this in mind, if you are working on a
24+
bug fix for earlier versions of Symfony.
2525

2626
Configure Git
2727
~~~~~~~~~~~~~

cookbook/configuration/micro-kernel-trait.rst

-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ as one file? This is possible thanks to the new
1111
you to start with a tiny application, and then add features and structure as you
1212
need to.
1313

14-
.. note::
15-
16-
The MicroKernelTrait requires PHP 5.4. However, there's nothing special about
17-
this trait. If you're using PHP 5.3, simply copy its methods into *your* kernel
18-
class to get the same functionality.
19-
2014
A Single-File Symfony Application
2115
---------------------------------
2216

cookbook/deployment/azure-website.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +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.9 to run, it's always recommended
100-
to use the most recent PHP version whenever possible. PHP 5.3 is no longer
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. Earlier versions are no longer
101101
supported by the PHP core team, but you can update it easily in Azure.
102102

103103
To update your PHP version on Azure, go to the **Configure** tab of the control

cookbook/security/_ircmaxwell_password-compat.rst.inc

-13
This file was deleted.

cookbook/security/entity_provider.rst

-2
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,6 @@ name ``our_db_provider`` isn't important: it just needs to match the value
291291
of the ``provider`` key under your firewall. Or, if you don't set the ``provider``
292292
key under your firewall, the first "user provider" is automatically used.
293293

294-
.. include:: /cookbook/security/_ircmaxwell_password-compat.rst.inc
295-
296294
Creating your First User
297295
~~~~~~~~~~~~~~~~~~~~~~~~
298296

create_framework/introduction.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Before You Start
6969

7070
Reading about how to create a framework is not enough. You will have to follow
7171
along and actually type all the examples included in this tutorial. For that,
72-
you need a recent version of PHP (5.3.9 or later is good enough), a web server
72+
you need a recent version of PHP (5.5.9 or later is good enough), a web server
7373
(like Apache, NGinx or PHP's built-in web server), a good knowledge of PHP and
7474
an understanding of Object Oriented programming.
7575

@@ -109,9 +109,8 @@ start with the simplest web application we can think of in PHP::
109109

110110
printf('Hello %s', $input);
111111

112-
If you have PHP 5.4, you can use the PHP built-in server to test this great
113-
application in a browser (``http://localhost:4321/index.php?name=Fabien``).
114-
Otherwise, use your own server (Apache, Nginx, etc.):
112+
You can use the PHP built-in server to test this great
113+
application in a browser (``http://localhost:4321/index.php?name=Fabien``):
115114

116115
.. code-block:: bash
117116

reference/configuration/security.rst

-5
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,6 @@ for the hash algorithm.
354354
Using the BCrypt Password Encoder
355355
---------------------------------
356356

357-
.. caution::
358-
359-
To use this encoder, you either need to use PHP Version 5.5 or install
360-
the `ircmaxell/password-compat`_ library via Composer.
361-
362357
.. configuration-block::
363358

364359
.. code-block:: yaml

reference/requirements.rst

+1-6
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,11 @@ Below is the list of required and optional requirements.
2121
Required
2222
--------
2323

24-
* PHP needs to be a minimum version of PHP 5.3.9
24+
* PHP needs to be a minimum version of PHP 5.5.9
2525
* JSON needs to be enabled
2626
* ctype needs to be enabled
2727
* Your ``php.ini`` needs to have the ``date.timezone`` setting
2828

29-
.. caution::
30-
31-
Be aware that Symfony has some known limitations when using PHP 5.3.16.
32-
For more information see the `Requirements section of the README`_.
33-
3429
Optional
3530
--------
3631

0 commit comments

Comments
 (0)