PHP code example of kolesa-team / phalcon-clockwork
1. Go to this page and download the library: Download kolesa-team/phalcon-clockwork library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kolesa-team / phalcon-clockwork example snippets
$di->set('eventsManager', function () {
$manager = new Phalcon\Events\Manager();
return $manager;
}, true);
$eventsManager = $di->get('eventsManager');
$application = new Phalcon\Mvc\Application($di);
$application->setEventsManager($eventsManager)
$clockwork = new ClockworkServices();
$clockwork->setEventsManager($di->get('eventsManager'));
$clockwork->initialize();