Skip to content

Commit ecc2ed5

Browse files
committed
Merge branch '2.7' into 2.8
2 parents c210d5f + 6938b8c commit ecc2ed5

35 files changed

+50
-88
lines changed

configuration/web_server_configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Configuring a Web Server
55
========================
66

77
The preferred way to develop your Symfony application is to use
8-
:doc:`PHP's internal web server </web_server/built_in>`. However,
8+
:doc:`PHP's internal web server </set_up/built_in_web_server>`. However,
99
when using an older PHP version or when running the application in the production
1010
environment, you'll need to use a fully-featured web server. This article
1111
describes several ways to use Symfony with Apache or Nginx.

contributing/code/tests.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Before Running the Tests
1818

1919
To run the Symfony test suite, install the external dependencies used during the
2020
tests, such as Doctrine, Twig and Monolog. To do so,
21-
:doc:`install Composer </composer/installation>` and execute the following:
21+
:doc:`install Composer </set_up/composer>` and execute the following:
2222

2323
.. code-block:: bash
2424

controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ to the controller:
212212
return $collection;
213213
214214
Now, you can go to ``/hello/ryan`` (e.g. ``http://localhost:8000/hello/ryan``
215-
if you're using the :doc:`built-in web server </web_server/built_in>`)
215+
if you're using the :doc:`built-in web server </set_up/built_in_web_server>`)
216216
and Symfony will execute the ``HelloController::indexAction()`` controller
217217
and pass in ``ryan`` for the ``$name`` variable. Creating a "page" means
218218
simply creating a controller method and an associated route.

controller/csrf_token_validation.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,14 @@ method to check the validity of a CSRF token::
1515
// ... do something, like deleting an object
1616
}
1717
}
18+
19+
.. versionadded:: 2.6
20+
The ``isCsrfTokenValid()`` shortcut method was introduced in Symfony 2.6.
21+
It is equivalent to executing the following code:
22+
23+
.. code-block:: php
24+
25+
use Symfony\Component\Security\Csrf\CsrfToken;
26+
27+
$this->get('security.csrf.token_manager')
28+
->isTokenValid(new CsrfToken('token_id', 'TOKEN'));

create_framework/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Dependency Management
9494

9595
To install the Symfony Components that you need for your framework, you are going
9696
to use `Composer`_, a project dependency manager for PHP. If you don't have it
97-
yet, :doc:`download and install Composer </composer/installation>` now.
97+
yet, :doc:`download and install Composer </set_up/composer>` now.
9898

9999
Our Project
100100
-----------

event_dispatcher/event_listener.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ them by executing any piece of code.
1212
Internal events provided by Symfony itself are defined in the
1313
:class:`Symfony\\Component\\HttpKernel\\KernelEvents` class. Third-party bundles
1414
and libraries also trigger lots of events and your own application can trigger
15-
:doc:`custom events </components/event_dispatcher/index>`.
15+
:doc:`custom events </components/event_dispatcher>`.
1616

1717
All the examples shown in this article use the same ``KernelEvents::EXCEPTION``
1818
event for consistency purposes. In your own application, you can use any event

http_fundamentals.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ handles every request coming into your application. For example:
321321
| ``/index.php/blog`` | executes ``index.php`` |
322322
+------------------------+------------------------+
323323

324-
.. include:: /includes/_rewrite_rule_tip.rst.inc
324+
.. include:: /_includes/_rewrite_rule_tip.rst.inc
325325

326326
Now, every request is handled exactly the same way. Instead of individual URLs
327327
executing different PHP files, the front controller is *always* executed,

index.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ Symfony Documentation
1111
page_creation
1212
introduction/from_flat_php_to_symfony2
1313
introduction/symfony1
14-
propel/propel
15-
psr/psr7
16-
upgrade/index
17-
web_server/index
1814
web_services/index
19-
workflow/index
20-
composer/installation
2115

2216
Quick Tour
2317
----------
@@ -85,6 +79,7 @@ Advanced Topics
8579
profiler
8680
request
8781
session
82+
set_up
8883

8984
Best Practices
9085
--------------

0 commit comments

Comments
 (0)