appneta/traceview-bundle
最新稳定版本:v1.0.1
Composer 安装命令:
composer require appneta/traceview-bundle
包简介
Additional integration with AppNeta TraceView for Symfony2 (or anything else using EventDispatcher/HTTPKernel).
README 文档
README
The AppNeta\TraceViewBundle bundle provides additional information about Symfony2 components to AppNeta TraceView. It currently supports:
- Reporting a controller and action
- Tracking kernel events as layers
- Tracking other event listeners as profiles
Installing
First, you'll need to pull in the TraceViewBundle as one of your app's
dependencies using Composer. Either use composer require,
or in your composer.json file, modify the "require" section to include the bundle:
"require": {
"php": ">=5.3.3",
"symfony/symfony": "~2.4",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
[...]
"appneta/traceview-bundle": "master@dev" # Or whatever version you prefer.
[...]
},
If installing directly from GitHub, rather than from Packagist, you can add the
extra repository to your composer.json in a top-level key of repositories
structured like so:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/appneta/AppNetaTraceViewBundle"
}
]
After using Composer to pull in the bundle, you'll need to make it available to
your app. Add it to app/AppKernel.php, looking something like this:
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
[...]
new AppNeta\TraceViewBundle\TraceViewBundle(),
[...]
);
return $bundles;
}
To enable controller/action and event listener tracking, add this section to your config.yml:
parameters:
event_dispatcher.class: AppNeta\TraceViewBundle\EventDispatcher\TraceViewContainerAwareEventDispatcher
Known issues
- Friendlier controller/action name reporting for long or multiple controllers
- Event dispatcher replacement currently conflicts with the Symfony debug toolbar
- User-configurable settings for which dispatched events to whitelist/blacklist for tracking
Contributing
The best way to improve this bundle is to work with the people using it! We actively encourage patches, pull requests, feature requests, and bug reports. Current goals include Symfony developer toolbar integration and performance or architectural improvements where possible.
统计信息
- 总下载量: 15.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-02-12