jycamier / console-command-process-bundle
简单任务:运行进程包的控制台命令
dev-master
2020-01-05 16:11 UTC
Requires
- cleverage/process-bundle: 3.*|dev-v3.0-dev
This package is auto-updated.
Last update: 2024-08-30 01:55:01 UTC
README
简单任务:运行进程包的控制台命令
使用案例:安装应用
首先,定义一个yaml文件,其中包含要运行的symfony控制台命令列表,以安装项目。请遵循Symfony\Bundle\FrameworkBundle\Console\Application
的格式:
## '%kernel.project_dir%/config/install.yaml' - command: doctrine:database:drop --if-exists: true --force: true --no-ansi: true --no-interaction: true - command: doctrine:database:create --if-not-exists: true --no-ansi: true --no-interaction: true - command: doctrine:schema:create --no-ansi: true --no-interaction: true - command: assets:install target: public --symlink: true --relative: true
然后,定义安装过程的配置
## '%kernel.project_dir%/config/packages/process.yml' clever_age_process: configurations: install: entry_point: load_install_command_file tasks: load_install_command_file: service: '@CleverAge\ProcessBundle\Task\File\YamlReaderTask' options: file_path: '%kernel.project_dir%/config/install.yaml' outputs: [run_command] run_command: service: '@Jycamier\ConsoleCommandProcessBundle\Task\ConsoleApplicationTask' options: debug_mode: true
您无法安装您的应用
$ bin/console cleverage:process:execute install
待办事项
- 添加一种方法来注入标准参数以配置安装过程