PHP code example of itk-dev / azure-ad-delta-sync-bundle
1. Go to this page and download the library: Download itk-dev/azure-ad-delta-sync-bundle 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/ */
itk-dev / azure-ad-delta-sync-bundle example snippets
namespace App\EventSubscriber;
use ItkDev\AzureAdDeltaSyncBundle\Event\DeleteUserEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class DeleteUserEventSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents(): array
{
return [
DeleteUserEvent::class => 'deleteUsers',
];
}
public function deleteUsers(DeleteUserEvent $event)
{
// User deletion logic here
}
}