kolesa-team/phalcon-clockwork

There is no license information available for the latest version (0.1.2) of this package.

The clockwork extension for working with the phalcon framework

Installs: 13 309

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 5

Open Issues: 1

pkg:composer/kolesa-team/phalcon-clockwork

0.1.2 2025-05-19 09:50 UTC

This package is auto-updated.

Last update: 2025-09-19 10:56:31 UTC


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();