senseexception / datacollector-bundle
此包已被弃用且不再维护。未建议替代包。
创建扩展 Symfony's Profiler 的额外 DataCollector 的示例包
1.1.0
2016-01-24 21:16 UTC
Requires
- php: >=5.3.9
- symfony/framework-bundle: ^2.3|^3.0
- symfony/twig-bundle: ^2.3|^3.0
- symfony/web-profiler-bundle: ^2.3|^3.0
Requires (Dev)
- phpunit/phpunit: ~4.5
This package is auto-updated.
Last update: 2022-02-01 12:47:12 UTC
README
这是一个简单的示例 Symfony Bundle,用于创建额外的 DataCollectors 并将其添加到 Symfony's Profiler。
此 Bundle 向 Symfony Profiler 的菜单、面板和工具栏添加了一个新的 DataCollector,用于客户端 IP 信息,以展示如何在 Symfony 中扩展 Profiler。您可以将此作为自己 Profiler 扩展的模板。
安装
将以下包添加到您的 composer.json
"require-dev": { "senseexception/datacollector-bundle": "1.1.0" }
并将包添加到您的 AppKernel.php
// app/AppKernel.php //... class AppKernel extends Kernel { //... public function registerBundles() { //... if (in_array($this->getEnvironment(), array('dev', 'test'), true)) { //... $bundles[] = new SenseException\Bundle\DataCollectorBundle\DataCollectorBundle(); } //... return $bundles; } //... }