dvelopment/firephp-bundle
Composer 安装命令:
composer require dvelopment/firephp-bundle
包简介
The FirePHPBundle provides simple integration FirePHP for your Symfony2 project.
关键字:
README 文档
README
The FirePHPBundle provides simple integration FirePHP for your Symfony2 project.
Installation
Add FirePHPBundle to your vendor/bundles dir
Using composer (recommended)
Require the bundle via composer
"require-dev": {
"dvelopment/firephp-bundle": "dev-master"
}
Use deps file
Add the following lines to de /deps file
; Debugging
[FirePHPBundle]
git=git://github.com/Jehu/FirePHPBundle.git
target=/bundles/FirePHPBundle
Use submodule
git submodule add git://github.com/Jehu/FirePHPBundle.git vendor/bundles/FirePHPBundle
Add FirePHPBundle to your application kernel
// app/AppKernel.php
public function registerBundles()
{
// ...
if (in_array($this->getEnvironment(), array('dev', 'test')) || (strpos($this->getEnvironment(), 'dev_') === 0)) {
{
// ...
$bundles[] = new FirePHPBundle\FirePHPBundle();
}
return $bundles;
}
Add FireBugBundle to your autoload.php (only needed if not installed via composer)
// app/autoload.php
$loader = new UniversalClassLoader();
$loader->registerNamespaces(array(
// ...
'FirePHP' => __DIR__.'/../vendor/bundles',
));
Add FirePHPBundle to your application config
// app/config/config_dev.yml
// ...
fire_php: ~
Usage
For available methods see (http://www.firephp.org/HQ/Use.htm)
From controller
public function indexAction()
{
$fb = $this->get('fire_php');
$fb->log(array(1,2,3));
// ...
}
统计信息
- 总下载量: 40.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-09-08