kolesa-team / phalcon-clockwork
The clockwork extension for working with the phalcon framework
Installs: 13 304
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 5
Open Issues: 1
Requires
- php: >=8.0
- ext-phalcon: ^v5.0
- itsgoingd/clockwork: ^v5.1.12
Requires (Dev)
- phalcon/ide-stubs: ^v5.1.4
README
#Installation Install the Clockwork library via Composer.
$ composer require kolesa-team/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();