Start of using Attribute objects, rendering jpegphoto

This commit is contained in:
Deon George
2021-12-10 22:39:09 +11:00
parent dabca67fc8
commit 10a2d2161b
5 changed files with 20 additions and 52 deletions

View File

@@ -7,19 +7,24 @@ use Illuminate\Support\Facades\Log;
use App\Classes\LDAP\{Attribute};
/**
* This factory is used to return LDAP attributes as an object
*
* If there is no specific Attribute defined, then the default Attribute::class is return
*/
class Factory
{
private const LOGKEY = 'LAf';
/**
* @var array event type to event class mapping
* Map of attributes to appropriate class
*/
public const map = [
'jpegphoto'=>Attribute\Binary\JpegPhoto::class,
];
/**
* Returns new event instance
* Create the new Object for an attribute
*
* @param string $attribute
* @param array $values