Skip to content

Commit

Permalink
minor #52114 [HttpKernel] Remove deprecation layer for Profiler (Heah…
Browse files Browse the repository at this point in the history
…Dude)

This PR was merged into the 7.0 branch.

Discussion
----------

[HttpKernel] Remove deprecation layer for Profiler

| Q             | A
| ------------- | ---
| Branch?       | 7.0
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | ~
| License       | MIT

Follows #47416.

Commits
-------

65970b2 [HttpKernel] Remove deprecation layer for Profiler
  • Loading branch information
nicolas-grekas committed Oct 17, 2023
2 parents 3e4a4a7 + 65970b2 commit e520db5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions UPGRADE-7.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ HttpKernel
* Remove `FileLinkFormatter`, use `FileLinkFormatter` from the ErrorHandler component instead
* Remove `UriSigner`, use `UriSigner` from the HttpFoundation component instead
* Remove `Kernel::stripComments()`
* Add argument `$filter` to `Profiler::find()` and `FileProfilerStorage::find()`

Lock
----
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/HttpKernel/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ CHANGELOG
* Remove `FileLinkFormatter`, use `FileLinkFormatter` from the ErrorHandler component instead
* Remove `UriSigner`, use `UriSigner` from the HttpFoundation component instead
* Add argument `$buildDir` to `WarmableInterface`
* Add argument `$filter` to `Profiler::find()` and `FileProfilerStorage::find()`

6.4
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ public function __construct(string $dsn)
}
}

/**
* @param \Closure|null $filter A filter to apply on the list of tokens
*/
public function find(?string $ip, ?string $url, ?int $limit, ?string $method, int $start = null, int $end = null, string $statusCode = null/* , \Closure $filter = null */): array
public function find(?string $ip, ?string $url, ?int $limit, ?string $method, int $start = null, int $end = null, string $statusCode = null, \Closure $filter = null): array
{
$filter = 7 < \func_num_args() ? func_get_arg(7) : null;
$file = $this->getIndexFilename();
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpKernel/Profiler/Profiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function purge(): void
*
* @see https://php.net/datetime.formats for the supported date/time formats
*/
public function find(?string $ip, ?string $url, ?int $limit, ?string $method, ?string $start, ?string $end, string $statusCode = null/* , \Closure $filter = null */): array
public function find(?string $ip, ?string $url, ?int $limit, ?string $method, ?string $start, ?string $end, string $statusCode = null, \Closure $filter = null): array
{
$filter = 7 < \func_num_args() ? func_get_arg(7) : null;

Expand Down

0 comments on commit e520db5

Please sign in to comment.