2017 © Pedro Peláez
 

symfony-bundle icalendar-bundle

image

six-paths/icalendar-bundle

  • Wednesday, February 21, 2018
  • by six-paths
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

ICalendar Bundle

Installation

Manual Installation

Add this to your composer.json, (*1)

"require": {
    "six-paths/icalendar-bundle": "dev-master"
}

Automated Installation

composer require six-paths/icalendar-bundle@dev-master, (*2)

Activate the bundle in app/AppKernel.php, (*3)

$bundles = array(
    // ...
    new Sixpaths\ICalendarBundle\SixpathsICalendarBundle(),
);

Usage

It is advised to inject this service in to listeners or other services that may need to consume it rather than using $this->get('...'); instead of a controller; however, that option is still available, (*4)

As part of a controller, (*5)

class SomeController extends Controller
{
    public function someAction(/* ...$arguments */)
    {
        $icalendar = $this->get('sixpaths.icalendar');
    }
}

As part of a console command, (*6)

class SomeCommand extends ContainerAwareCommand
{
    protected function configure()
    {
        $this->setName('some:command')
            ->setDescription('A command');
    }

    protected function execute(InterInterface $input, OutputInterface $output)
    {
        $container = $this->getContainer();
        $icalendar = $container->get('sixpaths.icalendar');
    }
}

The Versions

21/02 2018

dev-master

9999999-dev https://github.com/six-paths/icalendar-bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony icalendar

21/02 2018
22/11 2017
22/11 2017
17/11 2017