six-paths / icalendar-bundle
Installs: 296
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1
- liliumdev/icalendar: 0.1.2
Requires (Dev)
- phpunit/phpunit: ~5
This package is auto-updated.
Last update: 2024-04-04 22:49:28 UTC
README
Installation
Manual Installation
Add this to your composer.json
"require": { "six-paths/icalendar-bundle": "dev-master" }
Automated Installation
composer require six-paths/icalendar-bundle@dev-master
Activate the bundle in app/AppKernel.php
$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
As part of a controller
class SomeController extends Controller { public function someAction(/* ...$arguments */) { $icalendar = $this->get('sixpaths.icalendar'); } }
As part of a console command
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'); } }