snide / scrutinizer-bundle
Scrutinizer 客户端,用于 Symfony2 应用程序
dev-master
2014-03-09 18:40 UTC
Requires
- php: >=5.3.3
- guzzle/cache: 3.*
- guzzle/plugin: 3.*
- snide/php-scrutinizer-client: dev-master
- symfony/framework-bundle: >=2.1.0
- twig/twig: 1.*
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-09-14 16:29:21 UTC
README
对您的仓库(Symfony 2 Bundle)的快速概述
设置
使用 Composer 安装
如果您使用 composer,请将 SnideScrutinizerBundle 包作为依赖项添加到您的应用程序的 composer.json 文件中
"require": { ... "snide/scrutinizer-bundle": "dev-master" ... }, ## Loading Add the bundle to your app/AppKernel.php under the dev environment ```php if (in_array($this->getEnvironment(), array('dev', 'test'))) { ... $bundles[] = new Snide\Bundle\ScrutinizerBundle\SnideScrutinizerBundle(); }
该包需要将必要的资源复制到 web 文件夹。您可以使用以下命令
php app/console assets:install
配置
将以下内容添加到您的 app/config/config_dev.yml
中(您仅在开发环境中使用此配置)
snide_scrutinizer: repository: slug: pdenis/SnideTravinizerBundle # your repository slug type: github # github or bitbucket # Optional filesystem_cache_path: "%kernel.cache_dir%/scrutinizer"