class Adapter extends Plugin

Base adapter class

Methods

static mixed
adapterFor(array $file, string $path)

Locate the first adapter that's able to handle a file.

Details

at line line 28
static mixed adapterFor(array $file, string $path)

Locate the first adapter that's able to handle a file.

Each adapter determines its ability to handle a particular file

Parameters

array $file JSON file information
string $path Temp file path

Return Value

mixed Adapter instance if found, false otherwise