Buffalo Eats Online API Documentation

LocalStorageDriver
in package
implements StorageDriverInterface

Local filesystem storage driver.

Files are already in place from ImageService processing; put() is a no-op, delete() removes from public/, url() returns APP_URL-based path.

Tags
author

J.J. Johnson visionquest716@gmail.com

copyright

2026 VisionQuestServices LLC

Table of Contents

Interfaces

StorageDriverInterface
Interface for storage drivers (local filesystem, S3, etc.).

Methods

delete()  : void
Delete a file from the local public directory.
name()  : string
Get the driver name.
put()  : string
No-op for local storage — file is already in place.
url()  : string
Get the public URL for a locally stored file.

Methods

delete()

Delete a file from the local public directory.

public delete(string $storagePath) : void
Parameters
$storagePath : string

Relative storage path

name()

Get the driver name.

public name() : string
Return values
string

'local' or 's3'

put()

No-op for local storage — file is already in place.

public put(string $localPath, string $storagePath, string $mimeType) : string
Parameters
$localPath : string

Absolute path to the local file

$storagePath : string

Relative storage path

$mimeType : string

MIME type

Return values
string

The storage path

url()

Get the public URL for a locally stored file.

public url(string $storagePath) : string
Parameters
$storagePath : string

Relative storage path

Return values
string

Full URL


        
On this page

Search results