Skip to content

Commit fab3a39

Browse files
committed
Merge remote-tracking branch 'upstream/2.7' into 2.7
2 parents 5712edd + 25224cc commit fab3a39

File tree

5 files changed

+78
-22
lines changed

5 files changed

+78
-22
lines changed

contributing/code/bugs.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ If your problem definitely looks like a bug, report it using the official bug
2626
* Describe the steps needed to reproduce the bug with short code examples
2727
(providing a unit test that illustrates the bug is best);
2828

29-
* If the bug you experienced affects more than one layer, providing a simple
30-
failing unit test may not be sufficient. In this case, please fork the
31-
`Symfony Standard Edition`_ and reproduce your issue on a new branch;
29+
* If the bug you experienced is not obvious or affects more than one layer,
30+
providing a simple failing unit test may not be sufficient. In this case,
31+
please :doc:`provide a reproducer </contributing/code/reproducer>`;
3232

3333
* Give as much detail as possible about your environment (OS, PHP version,
3434
Symfony version, enabled extensions, ...);

doctrine.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ Updating an Object
632632
Once you've fetched an object from Doctrine, updating it is easy. Suppose
633633
you have a route that maps a product id to an update action in a controller::
634634

635-
use AppBundle\Entity\Post;
635+
use AppBundle\Entity\Product;
636636
// ...
637637

638638
public function updateAction($productId)

reference/configuration/web_profiler.rst

Lines changed: 69 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,71 @@
44
WebProfilerBundle Configuration ("web_profiler")
55
================================================
66

7+
The WebProfilerBundle provides detailed technical information about each request
8+
execution and displays it in both the web debug toolbar and the profiler.
9+
10+
.. caution::
11+
12+
The web debug toolbar is not available for responses of type ``StreamedResponse``.
13+
14+
Configuration
15+
-------------
16+
17+
* `toolbar`_
18+
* `position`_
19+
* `intercept_redirects`_
20+
* `excluded_ajax_paths`_
21+
* `verbose`_
22+
23+
toolbar
24+
~~~~~~~
25+
26+
**type**: ``boolean`` **default**: ``true``
27+
28+
It enables and disables the toolbar entirely. Usually you set this to ``true``
29+
in the ``dev`` and ``test`` environments and to ``false`` in the ``prod``
30+
environment.
31+
32+
position
33+
~~~~~~~~
34+
35+
**type**: ``string`` **default**: ``bottom``
36+
37+
It defines the location of the browser window where the toolbar is displayed.
38+
the only allowed values are ``bottom`` and ``top``.
39+
40+
intercept_redirects
41+
~~~~~~~~~~~~~~~~~~~
42+
43+
**type**: ``boolean`` **default**: ``false``
44+
45+
If a redirect occurs during an HTTP response, the browser follows it automatically
46+
and you won't see the toolbar or the profiler of the original URL, only the
47+
redirected URL.
48+
49+
When setting this option to ``true``, the browser *stops* before making any
50+
redirection and shows you the URL which is going to redirect to, its toolbar,
51+
and its profiler. Once you've inspected the toolbar/profiler data, you can click
52+
on the given link to perform the redirect.
53+
54+
excluded_ajax_paths
55+
~~~~~~~~~~~~~~~~~~~
56+
57+
**type**: ``string`` **default**: ``'^/(app(_[\\w]+)?\\.php/)?_wdt'``
58+
59+
When the toolbar logs Ajax requests, it matches their URLs against this regular
60+
expression. If the URL matches, the request is not displayed in the toolbar. This
61+
is useful when the application makes lots of Ajax requests or they are heavy and
62+
you want to exclude some of them.
63+
64+
verbose
65+
~~~~~~~
66+
67+
**type**: ``boolean`` **default**: ``true``
68+
69+
This option is **deprecated** and has no effect on the toolbar or the profiler,
70+
so you can safely remove it from your configuration.
71+
772
Full Default Configuration
873
--------------------------
974

@@ -13,23 +78,14 @@ Full Default Configuration
1378
1479
# app/config/config.yml
1580
web_profiler:
16-
17-
# DEPRECATED, it is not useful anymore and can be removed
18-
# safely from your configuration
19-
verbose: true
20-
21-
# display the web debug toolbar at the bottom of pages with
22-
# a summary of profiler info
2381
toolbar: false
2482
position: bottom
25-
26-
# gives you the opportunity to look at the collected data
27-
# before following the redirect
28-
intercept_redirects: false
29-
30-
# Exclude AJAX requests in the web debug toolbar for specified paths
83+
intercept_redirects: false
3184
excluded_ajax_paths: ^/bundles|^/_wdt
3285
86+
# DEPRECATED, it can be removed safely from your configuration
87+
verbose: true
88+
3389
.. code-block:: xml
3490
3591
<!-- app/config/config.xml -->

service_container.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ a very special object called the **service container**. If you have the service
1515
then you can fetch a service by using that service's id::
1616

1717
$logger = $container->get('logger');
18-
$entityManager = $container->get('doctrine.entity_manager');
18+
$entityManager = $container->get('doctrine.orm.entity_manager');
1919

2020
The container is the *heart* of Symfony: it allows you to standardize and centralize
2121
the way objects are constructed. It makes your life easier, is super fast, and emphasizes

service_container/parent_services.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ How to Manage Common Dependencies with Parent Services
77
As you add more functionality to your application, you may well start to
88
have related classes that share some of the same dependencies. For example,
99
you may have multiple repository classes which need the
10-
``doctrine.entity_manager`` service and an optional ``logger`` service::
10+
``doctrine.orm.entity_manager`` service and an optional ``logger`` service::
1111

1212
// src/AppBundle/Repository/BaseDoctrineRepository.php
1313
namespace AppBundle\Repository;
@@ -67,7 +67,7 @@ duplicated service definitions:
6767
app.base_doctrine_repository:
6868
# as no class is configured, the parent service MUST be abstract
6969
abstract: true
70-
arguments: ['@doctrine.entity_manager']
70+
arguments: ['@doctrine.orm.entity_manager']
7171
calls:
7272
- [setLogger, ['@logger']]
7373
@@ -93,7 +93,7 @@ duplicated service definitions:
9393
<services>
9494
<!-- as no class is configured, the parent service MUST be abstract -->
9595
<service id="app.base_doctrine_repository" abstract="true">
96-
<argument type="service" id="doctrine.entity_manager" />
96+
<argument type="service" id="doctrine.orm.entity_manager" />
9797
9898
<call method="setLogger">
9999
<argument type="service" id="logger" />
@@ -124,7 +124,7 @@ duplicated service definitions:
124124
125125
// as no class is configured, the parent service MUST be abstract
126126
$container->register('app.base_doctrine_repository')
127-
->addArgument(new Reference('doctrine.entity_manager'))
127+
->addArgument(new Reference('doctrine.orm.entity_manager'))
128128
->addMethodCall('setLogger', array(new Reference('logger')))
129129
;
130130

0 commit comments

Comments
 (0)