-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve ActionsColumnType & CollectionColumnType, overhaul profiler i…
…ntegration (#130) Improve ActionsColumnType & CollectionColumnType, overhaul profiler integration
- Loading branch information
Showing
39 changed files
with
3,249 additions
and
751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Profiler | ||
|
||
The bundle has a built-in integration with the [Symfony Profiler](https://symfony.com/doc/current/profiler.html). | ||
|
||
## Usage | ||
|
||
If at least one data table was created, the toolbar will include a new tab: | ||
|
||
![profiler_toolbar.png](/profiler_toolbar.png) | ||
|
||
Clicking it will redirect you to the _Data Tables_ profiler tab: | ||
|
||
![profiler_tab.png](/profiler_tab.png) | ||
|
||
Here you can inspect every single part of each data table: | ||
|
||
- quick overview - is this column sortable? is this filter applied? | ||
- type class of each component; | ||
- which options were passed; | ||
- how those options got resolved; | ||
- variables available in views, passed to the templates; | ||
- data of each value row of the current page; | ||
|
||
## Configuration | ||
|
||
Because the amount of data collected for this integration can be massive, | ||
the maximum depth of serialization can be adjusted in the bundle configuration: | ||
|
||
```yaml | ||
kreyu_data_table: | ||
profiler: | ||
max_depth: 3 | ||
``` | ||
Increasing the `max_depth` value will result in collecting and displaying deeper objects. | ||
If you wish to disable this limitation completely, set this value to `-1`. | ||
|
||
::: warning | ||
Increasing the depth **will** result in the browser freezes after opening the profiler tab. | ||
::: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
parameters: | ||
level: 5 | ||
checkGenericClassInNonGenericObjectType: false | ||
paths: | ||
- src | ||
- tests | ||
excludePaths: | ||
- src/Resources/skeleton/* | ||
- src/DependencyInjection/Configuration.php | ||
- src/DependencyInjection/Configuration.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.