PHP code example of numero2 / contao-churchdesk
1. Go to this page and download the library: Download numero2/contao-churchdesk 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/ */
numero2 / contao-churchdesk example snippets
// src/EventListener/ChurchDeskImportEntryListener.php
namespace App\EventListener;
use numero2\ChurchDeskBundle\Event\ChurchDeskEvents;
use numero2\ChurchDeskBundle\Event\ImportEntryEvent;
use Symfony\Component\EventDispatcher\Attribute\AsEventListener;
#[AsEventListener(ChurchDeskEvents::IMPORT_ENTRY)]
class ChurchDeskImportEntryListener {
public function __invoke( ImportEntryEvent $event ): void {
// …
}
}