Method | Description | |
---|---|---|
__construct ( |
Dependency injection | |
getContentType ( string $path ) : string | Symfony kept returning the MIME-type of my testing jpgs as PNGs, so determining it explicitly via looking at the path name. | |
handle ( string $request ) : Symfony\Component\HttpFoundation\StreamedResponse | Handles a Croppa style route | |
render ( string $request_path ) : string | Render image directly |
public __construct ( |
||
$url | ||
$storage | Bkwld\Croppa\Storage | |
$request | Illuminate\Http\Request | |
$config | array |
public getContentType ( string $path ) : string | ||
$path | string | |
return | string |