拖把/拥抱熊包

免费拥抱

安装: 951

依赖: 0

建议者: 0

安全: 0

星标: 4

关注者: 4

分支: 0

公开问题: 0

类型:symfony-bundle

dev-master 2013-11-20 10:13 UTC

This package is auto-updated.

Last update: 2024-09-21 19:57:41 UTC


README

这是我编写的一个小玩意。它将为您的Symfony2项目添加拥抱熊!

为了了解它的工作原理

My image

Build Status

安装

1. 使用composer安装

composer.json

{
    "require": {
        "mop/hugbearbundle": "*"
    }
}
$ php composer.phar update mop/hugbearbundle

2. 启用包

最好将包添加到您的开发环境中。否则,监听器将在生产环境中添加熊(它们不会激活)。

<?php
// app/AppKernel.php

public function registerBundles()
{
    // ...
    if (in_array($this->getEnvironment(), array('dev', 'test'))) {
        // ...
        $bundles[] = new Mop\HugbearBundle\MopHugbearBundle();
        // ...
    }
    // ..
}

3. 安装资源

$ php app/console assets:install

4. 欣赏!

在开发环境中打开您的应用程序。拥抱熊应该在您的分析栏中显示。点击它并享受!