Skip to content

Commit 4029897

Browse files
committed
Merge branch '2.8' into 3.4
* 2.8: correct a typo in a namespace loading Fixed the link to Functional Tests Update templating.rst Update doctrine.rst
2 parents 282bee3 + 3dd38eb commit 4029897

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

bundles/extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ but usually you would simply extend the
3535
// src/Acme/HelloBundle/DependencyInjection/AcmeHelloExtension.php
3636
namespace Acme\HelloBundle\DependencyInjection;
3737

38-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
3938
use Symfony\Component\DependencyInjection\ContainerBuilder;
39+
use Symfony\Component\DependencyInjection\Extension\Extension;
4040

4141
class AcmeHelloExtension extends Extension
4242
{

doctrine.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,11 @@ can automatically generate an empty ``test_project`` database for you:
201201

202202
.. caution::
203203

204-
MySQL sets a `limit of 767 bytes for the index key prefix`_. When using
205-
``utf8mb4``, string columns with 255 character length surpass that limit.
206-
This means that any column of type ``string`` and ``unique=true`` must
207-
set its maximum ``length`` to ``190``. Otherwise, you'll see this error:
204+
There is a `limit of 767 bytes for the index key prefix`_ when using
205+
InnoDB tables in MySQL 5.6 and earlier versions. String columns with 255
206+
character length and ``utf8mb4`` encoding surpass that limit. This means
207+
that any column of type ``string`` and ``unique=true`` must set its
208+
maximum ``length`` to ``190``. Otherwise, you'll see this error:
208209
*"[PDOException] SQLSTATE[42000]: Syntax error or access violation:
209210
1071 Specified key was too long; max key length is 767 bytes"*.
210211

templating.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,8 @@ ease the work of the template designer. In PHP, the templating system provides
407407
an extensible *helper* system that provides useful features in a template
408408
context.
409409

410-
You've already seen a few built-in Twig tags (``{% block %}`` & ``{% extends %}``)
411-
as well as an example of a PHP helper (``$view['slots']``). Here you will learn a
412-
few more.
410+
You've already seen a few built-in Twig tags like ``{% block %}`` and
411+
``{% extends %}``. Here you will learn a few more.
413412

414413
.. index::
415414
single: Templating; Including other templates

testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Unit Tests
4747

4848
A unit test is a test against a single PHP class, also called a *unit*. If you
4949
want to test the overall behavior of your application, see the section about
50-
`Functional Tests`_.
50+
:ref:`Functional Tests <functional-tests>`.
5151

5252
Writing Symfony unit tests is no different from writing standard PHPUnit
5353
unit tests. Suppose, for example, that you have an *incredibly* simple class

0 commit comments

Comments
 (0)