firestorm23 / command-runner-bundle
基于 borNfreee/CommandRunnerBundle 的分支。从控制器执行 symfony 控制台命令。
dev-master
2016-01-20 21:38 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-18 18:08:46 UTC
README
这是 borNfreee/CommandRunnerBundle 的分支。我修复了非值命令参数工作不正确的问题。
CommandRunnerBundle
从控制器(HTTP请求)执行 Symfony2 控制台命令。
安装
此捆绑包可在 Packagist 上找到
要安装它,请运行
$ composer require mrafalko/command-runner-bundle:dev-master
然后将捆绑包添加到 app/AppKernel.php
public function registerBundles() { return array( ... new Mrafalko\CommandRunnerBundle\MrafalkoCommandRunnerBundle(), ... ); }
然后导入路由文件
# app/config/routing.yml mrafalko_command_runner: resource: "@MrafalkoCommandRunnerBundle/Controller/CommandRunnerController.php" type: annotation prefix: /
示例
从您的 URL 运行命令