juanber84 / profilercommand-bundle
此Bundle为您在Symfonyprofiler中提供了一些命令工具。
dev-master
2013-10-12 11:13 UTC
Requires
- php: >=5.3.2
- symfony/framework-bundle: >=2.0.0
This package is not auto-updated.
Last update: 2024-09-24 03:28:34 UTC
README
在您的Symfonyprofiler中添加命令工具。这是主版本,可能不稳定。您必须使用我 1.0 版本 (稳定版)。
在您的composer.json中添加
{
"require": {
"juanber84/profilercommand-bundle": "dev-master"
}
}
在您的app/AppKernel.php中添加
<?php // app/AppKernel.php public function registerBundles() { return array( // ... new Juanber84\Bundle\ProfilercommandBundle\Juanber84ProfilercommandBundle(), // ... ); }
在您的app/routing.yml中添加
juanber84_profilercommand:
resource: "@Juanber84ProfilercommandBundle/Resources/config/routing.yml"
prefix: /
您的parameters.yml必须是这样的...
parameters:
// ...
// ...
// ...
profilercommand:
front:
cacheclear:
name: cache:clear
command: cache:clear
assetsinstall:
name: assets:install
command: assets:install /Users/juanberzal/Desktop/Symfony/web
schemaupdate:
name: schema:update
command: doctrine:schema:update --force
dump:
name: dump
command: assetic:dump
profiler:
cacheclear:
name: cache:clear
command: cache:clear
assetsinstall:
name: assets:install
command: assets:install /Users/juanberzal/Desktop/Symfony/web