greghubs / console-bundle
此组件允许您通过浏览器访问 symfony4 控制台 - 基于 coreSphere 组件,增加了 SF4 兼容性
0.5.0
2017-02-22 13:12 UTC
Requires
- php: ^5.5|^7.0
- symfony/console: ~2.7|~3.0
- symfony/dependency-injection: ~2.7|~3.0
- symfony/event-dispatcher: ~2.7|~3.0
- symfony/framework-bundle: ~2.7|~3.0
- symfony/http-kernel: ~2.7|~3.0
Requires (Dev)
- doctrine/doctrine-fixtures-bundle: ^2.2
- doctrine/doctrine-migrations-bundle: ^1.0
- phpunit/phpunit: ^4.8
- symfony/finder: ^2.7
- symfony/templating: ^3.2
This package is auto-updated.
Last update: 2024-09-22 02:26:54 UTC
README
此组件允许您通过浏览器访问 Symfony2 控制台。
特性
- 彩色输出
- 命令名自动完成
- 本地命令历史(localStorage)
cache:clear
可用
安装
-
请确保已安装 php 5.5 或更高版本。确保您的 composer 文件没有通过
config.platform.php
设置覆盖项目中所需的较旧 php 版本。 -
通过 composer 安装最新版本
composer require coresphere/console-bundle
-
在开发部分注册组件到您的 AppKernel 中
// app/AppKernel.php public function registerBundles() { $bundles = [ // other bundles here... ]; if (in_array($this->getEnvironment(), ['dev', 'test'])) { // ... $bundles[] = new CoreSphere\ConsoleBundle\CoreSphereConsoleBundle(); } return $bundles; }
-
将组件的路由添加到 app/config/routing_dev.yml 中
# app/config/routing_dev.yml # ... _main: resource: routing.yml coresphere_console: resource: . type: extra
-
运行 assets:install 命令以安装 css 和 js 文件
./app/console assets:install web
提示
- 输入
.clear
清除控制台窗口
预览
依赖
- jQuery
- Twig
兼容性
测试于
- Chrome
- Firefox 4
- Opera 11
- Safari 5