class TableLookupExtensionResolver extends AbstractResolver implements ExtensionResolverInterface

Extension resolver using static YML data table.

Traits

LoggerAwareTrait

Methods

__construct( string $file = __DIR__ . '/../../Resources/mimeTypeMapToFileExtension.yml')

Constructor can be optionally configured to use alternate yml lookup file.

bool
supports( StorageObjectInterface $object = null)

Determine if resolver is supported and supports object.

bool|mixed
resolve( StorageObjectInterface $object)

Attempt to determine the extension of the object.

Details

at line line 33
__construct( string $file = __DIR__ . '/../../Resources/mimeTypeMapToFileExtension.yml')

Constructor can be optionally configured to use alternate yml lookup file.

Parameters

string $file

at line line 45
bool supports( StorageObjectInterface $object = null)

Determine if resolver is supported and supports object.

Parameters

StorageObjectInterface $object

Return Value

bool

at line line 57
bool|mixed resolve( StorageObjectInterface $object)

Attempt to determine the extension of the object.

Parameters

StorageObjectInterface $object

Return Value

bool|mixed