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: 7 months ago
Size: 406 bytes
 

Contents

Class file image Download
<?php

use League\Flysystem\Adapter\Local;
use
League\Flysystem\Filesystem;

$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.