This class is implementing the design pattern "Factory" in order to manage the creation of Loaders.

 Methods

This function is retrieving the correct loader based on the parameter

getAdapter(string $mimetype) : \ILoader

access public

Parameters

$mimetype

string

type the type of loader needed

Exceptions

\UnexpectedValueException if the type is not registered

Returns

\ILoaderan object of Loader type