fof/console 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fof/console

最新稳定版本:0.7.0

Composer 安装命令:

composer require fof/console

包简介

Register custom commands and task scheduling into Flarum

README 文档

README

MIT license Latest Stable Version Total Downloads

This package is meant for extension developers and offers the ability to add task scheduling to Flarum.

Use in your extension

The real deal is using it in your own extension. Simply require it in your extension composer.json file:

    "require": {
        "fof/console": "^0.6"
    },

Now make sure the ConsoleProvider is registered inside Flarum. There's an Extender that helps you with that, inside your extend.php add:

return [
    new \FoF\Console\Extend\EnableConsole,
  // .. your code
];

Task Scheduling, cron jobs

To set a schedule, create a Service Provider which resolves the Illuminate\Console\Scheduling\Schedule through IoC, then use its methods to configure the schedule for the command, see the Task Scheduling documentation.

Links

统计信息

  • 总下载量: 31.62k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 5
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-03