PHP Classes

File: examples/example2/Config/fileStorage.php

Recommend this page to a friend!
  Classes of Slawomir Kaleta  >  Dframe File Storage  >  examples/example2/Config/fileStorage.php  >  Download  
File: examples/example2/Config/fileStorage.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Dframe File Storage
Store and retrieve files in a database
Author: By
Last change: Resolved #6, Refactory Code
Date: 2 years ago
Size: 406 bytes


Class file image Download

use League\Flysystem\Adapter\Local;

$cache = new Filesystem(new Local(__DIR__ . '/../cache'));
$local = new Filesystem(new Local(__DIR__ . '/../uploads'));
$web = new Filesystem(new Local(__DIR__ . '/../'));

return [
'pluginsDir' => __DIR__ . '/plugins',
'adapters' => [
'local' => $local,
'cache' => $cache,
'web' => $web

For more information send a message to info at phpclasses dot org.