fof/console

This package is abandoned and no longer maintained. No replacement package was suggested.

Register custom commands and task scheduling into Flarum

Fund package maintenance!
Open Collective

Installs: 31 501

Dependents: 5

Suggesters: 0

Security: 0

Stars: 3

Watchers: 5

Forks: 1

0.7.0 2021-03-08 20:03 UTC

This package is auto-updated.

Last update: 2021-05-17 19:40:40 UTC


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