setono / sylius-scheduler-plugin
Sylius的调度插件。
v0.1.0
2018-12-06 19:49 UTC
Requires
- php: ^7.2
- ext-json: *
- mtdowling/cron-expression: ^1.2
- sylius/sylius: ~1.3
Requires (Dev)
- behat/behat: ^3.4
- behat/mink: ^1.7@dev
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/context-service-extension: ^1.2
- friends-of-behat/cross-container-extension: ^1.1
- friends-of-behat/page-object-extension: ^0.2.0
- friends-of-behat/service-container-extension: ^1.0
- friends-of-behat/symfony-extension: ^1.2.1
- friends-of-behat/variadic-extension: ^1.1
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^5.0
- phpstan/phpstan-doctrine: ^0.10
- phpstan/phpstan-shim: ^0.10
- phpstan/phpstan-symfony: ^0.10
- phpstan/phpstan-webmozart-assert: ^0.10
- phpunit/phpunit: ^6.5
- roave/security-advisories: dev-master
- sensiolabs/security-checker: ^5.0
- sylius-labs/coding-standard: ^2.0
- symfony/browser-kit: ^3.4|^4.1
- symfony/debug-bundle: ^3.4|^4.1
- symfony/dotenv: ^3.4|^4.1
- symfony/intl: ^3.4|^4.1
- symfony/web-profiler-bundle: ^3.4|^4.1
- symfony/web-server-bundle: ^3.4|^4.1
Suggests
- ext-pcntl: Allows signal handlers
This package is auto-updated.
Last update: 2024-09-15 07:10:40 UTC
README
Sylius插件,用于在管理面板中安排作业并跟踪其状态。
安装
-
使用
composer
安装插件$ composer require setono/sylius-scheduler-plugin
-
在
config/bundles.php
中添加bundle,在SyliusResourceBundle
之前(!)<?php // config/bundles.php return [ // ... Setono\SyliusSchedulerPlugin\SetonoSyliusSchedulerPlugin::class => ['all' => true], Sylius\Bundle\ResourceBundle\SyliusResourceBundle::class => ['all' => true], ];
-
导入配置
# config/packages/_sylius.yaml imports: # ... - { resource: "@SetonoSyliusSchedulerPlugin/Resources/config/app/config.yaml" }
-
导入路由
# config/routes.yaml setono_sylius_scheduler_admin: resource: "@SetonoSyliusSchedulerPlugin/Resources/config/admin_routing.yaml" prefix: /admin
-
更新你的架构(对于现有项目)
# Generate and edit migration bin/console doctrine:migrations:diff # Then apply migration bin/console doctrine:migrations:migrate
插件配置
setono_sylius_scheduler: driver: doctrine/orm # Wipe logs in X days after command execution # Specify 0 to never wipe logs wipe_logs_in: 0 # We can specify emails to receive error reports on every Job # But here we can specify emails which receive error reports for all Jobs error_report_emails: []
贡献
安装
要自动执行安装步骤、加载 fixtures 并运行服务器,只需一个命令,运行
# Optional step, if 5 mins enough for webserver to try # @see https://getcomposer.org.cn/doc/06-config.md#process-timeout composer config --global process-timeout 0 composer try
或者手动执行以下步骤
-
初始化
SYMFONY_ENV=test (cd tests/Application && yarn install) && \ (cd tests/Application && yarn build) && \ (cd tests/Application && bin/console assets:install public -e $SYMFONY_ENV) && \ (cd tests/Application && bin/console doctrine:database:create -e $SYMFONY_ENV) && \ (cd tests/Application && bin/console doctrine:schema:create -e $SYMFONY_ENV)
-
如果您想手动玩插件测试应用程序,运行
SYMFONY_ENV=test (cd tests/Application && bin/console sylius:fixtures:load --no-interaction -e $SYMFONY_ENV && \ (cd tests/Application && bin/console server:run -d public -e $SYMFONY_ENV)
运行插件测试
-
PHPSpec
$ composer phpspec
-
Behat
$ composer behat
-
所有测试(phpspec & behat)
$ composer test
推送更改 & 制作PR
在制作PR或推送更改到仓库之前,请运行composer all
以运行所有检查和测试。