├── src
├── Middleware
│ ├── ConnectionNameAwareInterface.php
│ ├── DebugMiddleware.php
│ ├── IdleConnectionMiddleware.php
│ └── BacktraceDebugDataHolder.php
├── Repository
│ ├── ServiceEntityRepositoryInterface.php
│ ├── ContainerRepositoryFactory.php
│ └── ServiceEntityRepository.php
├── Attribute
│ ├── AsMiddleware.php
│ ├── AsDoctrineListener.php
│ └── AsEntityListener.php
├── Mapping
│ ├── EntityListenerServiceResolver.php
│ ├── ClassMetadataFactory.php
│ ├── MappingDriver.php
│ └── ContainerEntityListenerResolver.php
├── Dbal
│ ├── RegexSchemaAssetFilter.php
│ ├── ManagerRegistryAwareConnectionProvider.php
│ └── SchemaAssetsFilterManager.php
├── DependencyInjection
│ └── Compiler
│ │ ├── RemoveLoggingMiddlewarePass.php
│ │ ├── RemoveProfilerControllerPass.php
│ │ ├── ServiceRepositoryCompilerPass.php
│ │ ├── CacheSchemaSubscriberPass.php
│ │ ├── DbalSchemaFilterPass.php
│ │ ├── IdGeneratorPass.php
│ │ ├── MiddlewaresPass.php
│ │ ├── EntityListenerPass.php
│ │ └── DoctrineOrmMappingsPass.php
├── Command
│ ├── DoctrineCommand.php
│ ├── CreateDatabaseDoctrineCommand.php
│ └── DropDatabaseDoctrineCommand.php
├── Orm
│ └── ManagerRegistryAwareEntityManagerProvider.php
├── CacheWarmer
│ └── DoctrineMetadataCacheWarmer.php
├── ManagerConfigurator.php
├── Registry.php
├── Controller
│ └── ProfilerController.php
├── DoctrineBundle.php
├── Twig
│ └── DoctrineExtension.php
├── ConnectionFactory.php
└── DataCollector
│ └── DoctrineDataCollector.php
├── templates
└── Collector
│ ├── database.svg
│ ├── icon.svg
│ ├── explain.html.twig
│ └── db.html.twig
├── UPGRADE-3.1.md
├── UPGRADE-2.18.md
├── UPGRADE-2.12.md
├── UPGRADE-2.13.md
├── LICENSE
├── config
├── middlewares.php
├── messenger.php
├── dbal.php
├── orm.php
└── schema
│ └── doctrine-1.0.xsd
├── README.md
├── UPGRADE-2.17.md
├── UPGRADE-2.10.md
├── composer.json
└── UPGRADE-3.0.md
/src/Middleware/ConnectionNameAwareInterface.php:
--------------------------------------------------------------------------------
1 |
2 |
| {{ label }} | 8 | {% endfor %} 9 |
|---|
| {{ item|replace({',': ', '}) }} | 16 | {% endfor %} 17 |
24 | {%- for row in data -%}
25 | {{ row|first }}{{ "\n" }}
26 | {%- endfor -%}
27 |
28 | {% endif %}
29 |
--------------------------------------------------------------------------------
/src/Middleware/DebugMiddleware.php:
--------------------------------------------------------------------------------
1 | connectionName = $name;
26 | }
27 |
28 | public function wrap(DriverInterface $driver): DriverInterface
29 | {
30 | return new Driver($driver, $this->debugDataHolder, $this->stopwatch, $this->connectionName);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011 Fabien Potencier, Doctrine Project
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
4 | documentation files (the "Software"), to deal in the Software without restriction, including without limitation
5 | the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
6 | and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7 |
8 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9 |
10 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
11 | TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
12 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
13 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14 |
--------------------------------------------------------------------------------
/src/Middleware/IdleConnectionMiddleware.php:
--------------------------------------------------------------------------------
1 | $connectionExpiries
18 | * @param arrayNo executed queries.
184 |No database queries were performed.
200 || Time▼ | 210 |Count | 211 | {% else %} 212 |#▲ | 213 |Time | 214 | {% endif %} 215 |Info | 216 |||||
|---|---|---|---|---|---|---|---|---|
|
224 |
225 | {{ '%0.2f'|format(query.executionMS * 1000) }} ms ({{ '%0.2f'|format(query.executionPercent) }}%) 226 | |
227 | {{ query.count }} | 228 | {% else %} 229 |{{ loop.index }} | 230 |{{ '%0.2f'|format(query.executionMS * 1000) }} ms | 231 | {% endif %} 232 |
233 | {{ query.sql|doctrine_prettify_sql }}
234 |
235 |
236 | Parameters: {{ profiler_dump(query.params, 2) }}
237 |
238 |
239 |
240 | View formatted query
241 |
242 | {% if query.runnable %}
243 |
244 | View runnable query
245 | {% endif %}
246 |
247 | {% if query.explainable %}
248 |
249 | Explain query
250 | {% endif %}
251 |
252 | {% if query.backtrace is defined %}
253 |
254 | View query backtrace
255 | {% endif %}
256 |
257 |
258 |
262 |
263 | {% if query.runnable %}
264 |
269 | {% endif %}
270 |
271 | {% if query.explainable %}
272 |
273 | {% endif %}
274 |
275 | {% if query.backtrace is defined %}
276 |
277 |
307 | {% endif %}
308 |
|
309 |
There are no configured database connections.
325 |There are no configured entity managers.
339 |Second Level Cache is not enabled.
353 |Second level cache information is not available.
358 |No managed entities.
402 |No mapped entities.
419 |No loaded entities.
429 || Class | 435 |Mapping errors | 436 |
|---|---|
| 443 | {{ class. class}} 444 | | 445 |
446 | {% if contains_errors %}
447 |
|
456 |
| {{ label1 }} | 546 |{{ label2 }} | 547 |
|---|---|
| {{ key }} | 553 |{{ value }} | 554 |