Skip to content

Commit 57ad83e

Browse files
committed
Merge branch '5.1'
* 5.1: Added Stopwatch example to the README Bump Symfony version to 5.1.8 Update VERSION for 5.1.7 Update CHANGELOG for 5.1.7 Bump Symfony version to 4.4.16 Update VERSION for 4.4.15 Update CHANGELOG for 4.4.15
2 parents c91ad12 + 84bec1d commit 57ad83e

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

CHANGELOG-5.1.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,27 @@ in 5.1 minor versions.
77
To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
88
To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v5.1.0...v5.1.1
99

10+
* 5.1.7 (2020-10-04)
11+
12+
* bug #38396 Handle consecutive supports() calls in the RememberMeAuthenticator (wouterj)
13+
* bug #36291 [Lock] Fix StoreFactory to accept same DSN syntax as AbstractAdapter (Jontsa)
14+
* bug #38390 [Serializer][Minor] Fix circular reference exception message (bad limit displayed) (l-vo)
15+
* bug #38388 [HttpClient] Always "buffer" empty responses (nicolas-grekas)
16+
* bug #38384 [PhpUnitBridge] Fix Deprecation file when it comes from the TestsListener (fancyweb)
17+
* bug #38380 [Form] propagate validation groups to subforms (johanderuijter, xabbuh)
18+
* bug #38377 Ignore more deprecations for Mockery mocks (fancyweb)
19+
* bug #38375 [HttpClient] fix using proxies with NativeHttpClient (nicolas-grekas)
20+
* bug #38372 [Routing] fix using !important and defaults/reqs in inline route definitions (nicolas-grekas)
21+
* bug #38373 [ErrorHandler][DebugClassLoader] Do not check Mockery mocks classes (fancyweb)
22+
* bug #38368 [HttpClient] Fix using https with proxies (bohanyang)
23+
* bug #38350 [TwigBundle] Only remove kernel exception listener if twig is used (dmolineus)
24+
* bug #38360 [BrowserKit] Cookie expiration at current timestamp (iquito)
25+
* bug #38357 [DI] fix dumping non-shared lazy services (nicolas-grekas)
26+
* bug #38358 [Messenger] Fix redis connection error message (alexander-schranz)
27+
* bug #38343 Revert "bug #38063 [FrameworkBundle] generate preload.php in src/ to make opcache.preload predictable" (nicolas-grekas)
28+
* bug #38348 [FrameworkBundle] Add Mailjet definition (michaelKaefer)
29+
* bug #38336 [PhpUnitBridge] Fixed class_alias() for PHPUnit\Framework\Error\Error (stevegrunwell)
30+
1031
* 5.1.6 (2020-09-27)
1132

1233
* bug #38291 [OptionsResolver] Fix deprecation message access (fancyweb)

src/Symfony/Component/Stopwatch/README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,39 @@ Stopwatch Component
33

44
The Stopwatch component provides a way to profile code.
55

6+
Getting Started
7+
---------------
8+
9+
```
10+
$ composer require symfony/stopwatch
11+
```
12+
13+
```php
14+
use Symfony\Component\Stopwatch\Stopwatch;
15+
16+
$stopwatch = new Stopwatch();
17+
18+
// optionally group events into sections (e.g. phases of the execution)
19+
$stopwatch->openSection();
20+
21+
// starts event named 'eventName'
22+
$stopwatch->start('eventName');
23+
24+
// ... run your code here
25+
26+
// optionally, start a new "lap" time
27+
$stopwatch->lap('foo');
28+
29+
// ... run your code here
30+
31+
$event = $stopwatch->stop('eventName');
32+
33+
$stopwatch->stopSection('phase_1');
34+
```
35+
636
Resources
737
---------
838

9-
* [Documentation](https://symfony.com/doc/current/components/stopwatch.html)
1039
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
1140
* [Report issues](https://github.com/symfony/symfony/issues) and
1241
[send Pull Requests](https://github.com/symfony/symfony/pulls)

0 commit comments

Comments
 (0)