This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle/WebProfilerBundle
Fabien Potencier dc56389b03 feature #31876 [WebProfilerBundle] Add clear button to ajax tab (Matts)
This PR was squashed before being merged into the 4.4 branch (closes #31876).

Discussion
----------

[WebProfilerBundle] Add clear button to ajax tab

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #31839
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

For pages that have been open for a long time, the profiler ajax tab can start filling up fast. In #31839 the request to allow the history to be cleared with one click.

The reason why I did not align the button to the right, is because after looking at the other tabs. None of them had items that were aligned to the right. Moved the addEventListener above the ajax tab logic to keep the code consistent.

Ps. Please be nice, this is my first contribution 🍰

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/roadmap):
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against branch 4.4.
 - Legacy code removals go to the master branch.
-->

Commits
-------

6bff4db6d3 [WebProfilerBundle] Add clear button to ajax tab
2019-07-08 09:42:34 +02:00
..
Controller renamed the ErrorHandler component to ErrorCatcher 2019-06-27 19:38:50 +02:00
Csp switched array() to [] 2019-01-16 10:39:14 +01:00
DependencyInjection switched array() to [] 2019-01-16 10:39:14 +01:00
EventListener Merge branch '4.2' 2019-04-27 14:01:28 +02:00
Profiler Merge branch '3.4' into 4.1 2019-01-16 19:21:11 +01:00
Resources feature #31876 [WebProfilerBundle] Add clear button to ajax tab (Matts) 2019-07-08 09:42:34 +02:00
Tests renamed the ErrorHandler component to ErrorCatcher 2019-06-27 19:38:50 +02:00
Twig fixed CS 2019-01-16 19:35:49 +01:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md [WebProfilerBundle] Add clear button to ajax tab 2019-07-08 09:42:23 +02:00
composer.json Added ErrorHandler component 2019-06-20 11:01:49 -04:00
LICENSE update year in license files 2019-01-01 14:45:19 +01:00
phpunit.xml.dist Bump phpunit XSD version to 5.2 2018-11-11 12:18:13 +01:00
README.md [WebProfilerBundle] added a note in the README 2018-09-24 10:42:32 +02:00
WebProfilerBundle.php made it clear that the profiler is for dev only 2018-09-24 10:00:32 +02:00

WebProfilerBundle

The Web profiler bundle is a development tool that gives detailed information about the execution of any request.

Never enable it on production servers as it will lead to major security vulnerabilities in your project.

Resources