casparjones / phalcon-clockwork
There is no license information available for the latest version (0.0.10) of this package.
The clockwork extension for working with the phalcon framework. Fork by kolesa-team/phalcon-clockwork
0.0.10
2023-02-21 14:41 UTC
Requires
- php: >=8.0
- ext-phalcon: *
- itsgoingd/clockwork: ^5.0
Requires (Dev)
- phalcon/ide-stubs: ^v4.1.0
This package is not auto-updated.
Last update: 2025-03-19 22:42:24 UTC
README
#Installation Install the Clockwork library via Composer.
$ composer require casparjones/phalcon-clockwork
Set events manager to service(di)
$di->set('eventsManager', function () { $manager = new Phalcon\Events\Manager(); return $manager; }, true);
Set events manager to Application
$eventsManager = $di->get('eventsManager'); $application = new Phalcon\Mvc\Application($di); $application->setEventsManager($eventsManager)
Init clockwork
$clockwork = new ClockworkServices(); $clockwork->setEventsManager($di->get('eventsManager')); $clockwork->initialize();