winzou / console-bundle
1.0.1
2013-02-22 08:46 UTC
Requires
- php: >=5.3.3
- symfony/console: >=2.1.0,<3.0
- symfony/framework-bundle: >=2.1.0,<3.0
This package is auto-updated.
Last update: 2022-02-01 12:21:46 UTC
README
此包允许您通过浏览器访问 Symfony2 控制台。
特性
- 彩色输出
- 命令名称自动补全
- 本地命令历史(localStorage)
cache:clear
功能正常
安装
-
将
coresphere/console-bundle
添加到您的 composer.json 文件,并运行composer.phar update
// composer.json "require": { ... "winzou/console-bundle": "1.*", ... }
-
将以下路由添加到您的路由配置中
#app/config/routing_dev.yml console: resource: "@CoreSphereConsoleBundle/Resources/config/routing.yml"
-
在 AppKernel 的开发部分注册此包
// app/ApplicationKernel.php public function registerBundles() { $bundles = array( // other bundles here... ); if (in_array($this->getEnvironment(), array('dev', 'test'))) { // ... $bundles[] = new CoreSphere\ConsoleBundle\CoreSphereConsoleBundle(); } return $bundles; }
-
运行 assets:install 命令以安装 CSS 和 JS 文件
./app/console assets:install web
提示
- 输入
.clear
清除控制台窗口
预览
依赖
- jQuery
- Twig
兼容性
已测试与
- Chrome
- Firefox 4
- Opera 11
- Safari 5
待办事项
- 编写 JavaScript 测试
- 将控制台添加到网络开发者工具栏的“弹出”选项中
- 找出如何允许交互模式(可能?极端黑客方式?)