Page MenuHomePhorge

Activesync.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

Activesync.php

<?php
namespace App\Handlers;
use App\Entitlement;
use App\Jobs\User\UpdateJob;
use App\Sku;
use App\User;
class Activesync extends Base
{
/**
* The entitleable class for this handler.
*/
public static function entitleableClass(): string
{
return User::class;
}
/**
* Handle entitlement creation event.
*/
public static function entitlementCreated(Entitlement $entitlement): void
{
if (\config('app.with_ldap')) {
UpdateJob::dispatch($entitlement->entitleable_id);
}
}
/**
* Handle entitlement deletion event.
*/
public static function entitlementDeleted(Entitlement $entitlement): void
{
if (\config('app.with_ldap')) {
UpdateJob::dispatch($entitlement->entitleable_id);
}
}
/**
* SKU handler metadata.
*/
public static function metadata(Sku $sku): array
{
$data = parent::metadata($sku);
$data['required'] = ['Groupware'];
return $data;
}
/**
* The priority that specifies the order of SKUs in UI.
* Higher number means higher on the list.
*/
public static function priority(): int
{
return 70;
}
}

File Metadata

Mime Type
text/x-php
Expires
Apr 3 2026, 11:56 PM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18741561
Default Alt Text
Activesync.php (1 KB)

Event Timeline