1. Go to this page and download the library: Download akyos/canopee-module-sdk 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/ */
akyos / canopee-module-sdk example snippets
#[Notifier(
name: 'notifier.event.reminder_manager.name',
description: 'notifier.event.reminder_manager.description'
)]
public function notifyEventReminderManager(Event $event, $log): void
{
// logique d'envoi
}
class UserAccessRightResolver implements NotifierArgumentResolverInterface
{
public function supports(\ReflectionParameter $parameter): bool
{
return $parameter->getType()?->getName() === UserAccessRight::class;
}
public function resolve(): mixed
{
return $this->repository->findOneBy([], ['id' => 'ASC']);
}
}