PHP code example of carlescliment / calendar-bundle
1. Go to this page and download the library: Download carlescliment/calendar-bundle 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/ */
carlescliment / calendar-bundle example snippets
namespace Your\OwnCalendarBundle\Event;
use BladeTester\CalendarBundle\Event\CalendarEvent;
class CalendarListener {
public function onPrePersist(CalendarEvent $event) {
$event_model = $event->getEvent();
// do whatever with the object before persisting it.
}
}
$bundles = array(
// ...
new Your\OwnCalendarBundle\YourOwnCalendarBundle(),
);
cd /path/to/calendar-bundle
composer update
php vendor/bin/phpunit