Skip to content

Commit 1efcdba

Browse files
committed
Merge branch '2.4' into 2.5
2 parents 071f583 + a2ce937 commit 1efcdba

File tree

2 files changed

+68
-5
lines changed

2 files changed

+68
-5
lines changed

book/testing.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,52 @@ To get the Profiler for the last request, do the following::
487487
For specific details on using the profiler inside a test, see the
488488
:doc:`/cookbook/testing/profiling` cookbook entry.
489489

490+
To avoid collecting data in each test you can set the ``collect`` parameter
491+
in the configuration:
492+
493+
.. configuration-block::
494+
495+
.. code-block:: yaml
496+
497+
# app/config/config_test.yml
498+
499+
# ...
500+
framework:
501+
profiler:
502+
enabled: true
503+
collect: false
504+
505+
.. code-block:: xml
506+
507+
<!-- app/config/config.xml -->
508+
<?xml version="1.0" encoding="UTF-8" ?>
509+
<container xmlns="http://symfony.com/schema/dic/services"
510+
xmlns:framework="http://symfony.com/schema/dic/symfony"
511+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
512+
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
513+
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
514+
515+
<!-- ... -->
516+
517+
<framework:config>
518+
<framework:profiler enabled="true" collect="false" />
519+
</framework:config>
520+
</container>
521+
522+
.. code-block:: php
523+
524+
// app/config/config.php
525+
526+
// ...
527+
$container->loadFromExtension('framework', array(
528+
'profiler' => array(
529+
'enabled' => true,
530+
'collect' => false,
531+
),
532+
));
533+
534+
In this way only tests that call ``enableProfiler()`` will collect data.
535+
490536
Redirecting
491537
~~~~~~~~~~~
492538

contributing/code/core_team.rst

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,15 @@ Active Core Members
5252
Process_ component;
5353

5454
* **Nicolas Grekas** (:merger:`nicolas-grekas`) can merge into the Debug_
55-
component.
55+
component;
56+
57+
* **Christophe Coevoet** (:merger:`stof`) can merge into the BrowserKit_,
58+
Config_, Console_, DependencyInjection_, DomCrawler_, EventDispatcher_,
59+
HttpFoundation_, HttpKernel_, Serializer_, Stopwatch_, DoctrineBridge_,
60+
MonologBridge_, and TwigBridge_ components.
5661

5762
* **Deciders**:
5863

59-
* **Christophe Coevoet** (:decider:`stof`);
6064
* **Jakub Zalas** (:decider:`jakzal`);
6165
* **Jordi Boggiano** (:decider:`seldaek`);
6266
* **Lukas Kahwe Smith** (:decider:`lsmith77`).
@@ -137,13 +141,26 @@ discretion of the **Project Leader**.
137141
.. [1] Minor changes comprise typos, DocBlock fixes, code standards
138142
violations, and minor CSS, JavaScript and HTML modifications.
139143
144+
.. _BrowserKit: https://github.com/symfony/BrowserKit
145+
.. _Config: https://github.com/symfony/Config
146+
.. _Console: https://github.com/symfony/Console
147+
.. _Debug: https://github.com/symfony/Debug
148+
.. _DependencyInjection: https://github.com/symfony/DependencyInjection
149+
.. _DoctrineBridge: https://github.com/symfony/DoctrineBridge
150+
.. _EventDispatcher: https://github.com/symfony/EventDispatcher
151+
.. _DomCrawler: https://github.com/symfony/DomCrawler
140152
.. _Form: https://github.com/symfony/Form
141-
.. _Validator: https://github.com/symfony/Validator
153+
.. _HttpFoundation: https://github.com/symfony/HttpFoundation
154+
.. _HttpKernel: https://github.com/symfony/HttpKernel
142155
.. _Icu: https://github.com/symfony/Icu
143156
.. _Intl: https://github.com/symfony/Intl
144157
.. _Locale: https://github.com/symfony/Locale
158+
.. _MonologBridge: https://github.com/symfony/MonologBridge
145159
.. _OptionsResolver: https://github.com/symfony/OptionsResolver
160+
.. _Process: https://github.com/symfony/Process
146161
.. _PropertyAccess: https://github.com/symfony/PropertyAccess
147162
.. _Routing: https://github.com/symfony/Routing
148-
.. _Process: https://github.com/symfony/Process
149-
.. _Debug: https://github.com/symfony/Debug
163+
.. _Serializer: https://github.com/symfony/Serializer
164+
.. _Stopwatch: https://github.com/symfony/Stopwatch
165+
.. _TwigBridge: https://github.com/symfony/TwigBridge
166+
.. _Validator: https://github.com/symfony/Validator

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy