dev-master
9999999-devThis bundle provides a calendar bundle for symfony2
MIT
The Requires
by Fernando SĂĄnchez MartĂnez
This bundle provides a calendar bundle for symfony2
The CalendarBundle
means easy-to-implement and feature-rich calendar in your Symfony application!, (*1)
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*2)
$ composer require madforwebs/calendar-bundle
This command requires you to have Composer installed globally, as explained
in the installation chapter
of the Composer documentation., (*3)
Then, enable the bundle by adding the following line in the app/AppKernel.php
file of your project:, (*4)
// app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new MadForWebs\CalendarBundle\CalendarBundle(), ); // ... } // ... }
You must define import service from @CalendarBundle like this in your config.yml, (*5)
imports: ... - { resource: "@CalendarBundle/Resources/config/services.yml" } ...
An example use service to import festive days, (*6)
/** @var CalendarHandler $calendarHandler */ $calendarHandler = $this->get('mad_for_webs_calendar.handler'); $calendarHandler->createDaysFromCalendar();
You can extend class, (*7)
use MadForWebs\CalendarBundle\Entity\Day as BaseDay; /** * @ORM\Entity * @ORM\Table(name="mfw_day") */ class Day extends BaseDay { ... }
This bundle provides a calendar bundle for symfony2
MIT