Skip to content

Commit ddc5fb1

Browse files
committed
Merge branch '2.1'
2 parents cb81829 + 3300ab3 commit ddc5fb1

File tree

7 files changed

+11
-115
lines changed

7 files changed

+11
-115
lines changed

book/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ Distribution:
6060

6161
.. code-block:: bash
6262
63-
php composer.phar create-project symfony/framework-standard-edition /path/to/webroot/Symfony dev-master
63+
php composer.phar create-project symfony/framework-standard-edition /path/to/webroot/Symfony 2.1.x-dev
6464
6565
.. tip::
6666

67-
For an exact version, replace `dev-master` with the latest Symfony version
67+
For an exact version, replace `2.1.x-dev` with the latest Symfony version
6868
(e.g. 2.1.1). For details, see the `Symfony Installation Page`_
6969

7070
This command may take several minutes to run as Composer download the Standard

book/testing.rst

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -415,19 +415,13 @@ HTTP layer. For a list of services available in your application, use the
415415
Accessing the Profiler Data
416416
~~~~~~~~~~~~~~~~~~~~~~~~~~~
417417

418-
On each request, you can enable the Symfony profiler to collect data about the
419-
internal handling of that request. For example, the profiler could be used to
420-
verify that a given page executes less than a certain number of database
418+
On each request, the Symfony profiler collects and stores a lot of data about
419+
the internal handling of that request. For example, the profiler could be
420+
used to verify that a given page executes less than a certain number of database
421421
queries when loading.
422422

423423
To get the Profiler for the last request, do the following::
424424

425-
// enable the profiler for the very next request
426-
$client->enableProfiler();
427-
428-
$crawler = $client->request('GET', '/profiler');
429-
430-
// get the profile
431425
$profile = $client->getProfile();
432426

433427
For specific details on using the profiler inside a test, see the

cookbook/testing/profiling.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,15 @@ various things and enforce some metrics.
1111

1212
The Symfony2 :ref:`Profiler <internals-profiler>` gathers a lot of data for
1313
each request. Use this data to check the number of database calls, the time
14-
spent in the framework, ... But before writing assertions, enable the profiler
15-
and check that the profiler is indeed available (it is enabled by default in
16-
the ``test`` environment)::
14+
spent in the framework, ... But before writing assertions, always check that
15+
the profiler is indeed available (it is enabled by default in the ``test``
16+
environment)::
1717

1818
class HelloControllerTest extends WebTestCase
1919
{
2020
public function testIndex()
2121
{
2222
$client = static::createClient();
23-
24-
// Enable the profiler for the next request (it does nothing if the profiler is not available)
25-
$client->enableProfiler();
26-
2723
$crawler = $client->request('GET', '/hello/Fabien');
2824

2925
// ... write some assertions about the Response

quick_tour/the_big_picture.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ have a ``Symfony/`` directory that looks like this:
5959

6060
.. code-block:: bash
6161
62-
$ composer.phar create-project symfony/framework-standard-edition path/to/install dev-master
62+
$ composer.phar create-project symfony/framework-standard-edition path/to/install 2.1.x-dev
6363
6464
# remove the Git history
6565
$ rm -rf .git
6666
67-
For an exact version, replace `dev-master` with the latest Symfony version
67+
For an exact version, replace `2.1.x-dev` with the latest Symfony version
6868
(e.g. 2.1.1). For details, see the `Symfony Installation Page`_
6969

7070
.. tip::

reference/constraints.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,14 @@ Validation Constraints Reference
4040
constraints/File
4141
constraints/Image
4242

43-
constraints/Luhn
44-
4543
constraints/Callback
4644
constraints/All
4745
constraints/UserPassword
4846
constraints/Valid
4947

5048
The Validator is designed to validate objects against *constraints*.
5149
In real life, a constraint could be: "The cake must not be burned". In
52-
Symfony2, constraints are similar: They are assertions that a condition is
50+
Symfony2, constraints are similar: They are assertions that a condition is
5351
true.
5452

5553
Supported Constraints

reference/constraints/Luhn.rst

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

reference/constraints/map.rst.inc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ File Constraints
5454
* :doc:`File </reference/constraints/File>`
5555
* :doc:`Image </reference/constraints/Image>`
5656

57-
Financial Constraints
58-
~~~~~~~~~~~~~~~~~~~~~
59-
60-
* :doc:`Luhn </reference/constraints/Luhn>`
61-
6257
Other Constraints
6358
~~~~~~~~~~~~~~~~~
6459

0 commit comments

Comments
 (0)