Property | Type | Description | |
---|---|---|---|
$mimeTypeExtensionGuesser | Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface | A instance of Symfony's MIME type extension guesser interface. |
Method | Description | |
---|---|---|
create ( mixed $file, boolean $testing = false ) : Codesleeve\Stapler\File\UploadedFile | Build a Codesleeve\Stapler\UploadedFile object using various file input types. | |
getMimeTypeExtensionGuesserInstance ( ) : Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesserInterface | Return an instance of the Symfony MIME type extension guesser. | |
setConfigInstance ( Codesleeve\Stapler\Interfaces\Config $config ) | Set the configuration object instance. |
Method | Description | |
---|---|---|
createFromArray ( array $file, boolean $testing ) : Codesleeve\Stapler\File\File | Build a Codesleeve\Stapler\File\File object from the raw php $_FILES array date. We assume here that the $_FILES array has been formated using the Stapler::arrangeFiles utility method. | |
createFromDataURI ( string $file ) : Codesleeve\Stapler\File\File | Compose a \Codesleeve\Stapler\File\UploadedFile object from a data uri. | |
createFromObject ( Symfony\Component\HttpFoundation\File\UploadedFile $file ) : Codesleeve\Stapler\File\UploadedFile | Compose a \Codesleeve\Stapler\File\UploadedFile object from a \Symfony\Component\HttpFoundation\File\UploadedFile object. | |
createFromString ( string $file ) : Codesleeve\Stapler\File\File | Fetch a local file using a string location and convert it into an instance of \Codesleeve\Stapler\File\File. | |
createFromUrl ( string $file ) : Codesleeve\Stapler\File\File | Fetch a remote file using a string URL and convert it into an instance of Codesleeve\Stapler\File\File. |
protected static createFromArray ( array $file, boolean $testing ) : Codesleeve\Stapler\File\File | ||
$file | array | |
$testing | boolean | |
return | Codesleeve\Stapler\File\File |
protected static createFromDataURI ( string $file ) : Codesleeve\Stapler\File\File | ||
$file | string | |
return | Codesleeve\Stapler\File\File |
protected static createFromObject ( Symfony\Component\HttpFoundation\File\UploadedFile $file ) : Codesleeve\Stapler\File\UploadedFile | ||
$file | Symfony\Component\HttpFoundation\File\UploadedFile | |
return | Codesleeve\Stapler\File\UploadedFile |
protected static createFromString ( string $file ) : Codesleeve\Stapler\File\File | ||
$file | string | |
return | Codesleeve\Stapler\File\File |
protected static createFromUrl ( string $file ) : Codesleeve\Stapler\File\File | ||
$file | string | |
return | Codesleeve\Stapler\File\File |
public static getMimeTypeExtensionGuesserInstance ( ) : Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesserInterface | ||
return | Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesserInterface |
public static setConfigInstance ( Codesleeve\Stapler\Interfaces\Config $config ) | ||
$config | Codesleeve\Stapler\Interfaces\Config |
protected static ExtensionGuesserInterface,Symfony\Component\HttpFoundation\File\MimeType $mimeTypeExtensionGuesser | ||
return | Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface |