Closed waspinator closed 5 years ago
With composer require burzum/file-storage:2.0.*
you get anything like 2.0.x, but version 2.1.0 has been released, which provides CakePHP 3.6+ support.
Docs fixed in https://github.com/burzum/cakephp-file-storage/commit/97ba39fc07ff7282d6a240e1fe5fef3c7912418a
Please update and re-try.
I updated to 2.1 and the deprecation warning has gone away, but I still get the exception after editing the config/bootstrap.php
file.
It looks like the Lib
directory was removed but the docs still reference it.
@waspinator
use Cake\Event\EventManager;
use Burzum\FileStorage\Storage\StorageUtils;
use Burzum\FileStorage\Storage\StorageManager;
use Burzum\FileStorage\Storage\Listener\ImageProcessingListener;
use Burzum\FileStorage\Storage\Listener\LocalListener;
$listener = new LocalListener();
EventManager::instance()->on($listener);
// automated image processing
$listener = new ImageProcessingListener();
EventManager::instance()->on($listener);
StorageManager::config('Local', [
'adapterOptions' => [ROOT . DS . 'file_storage', true],
'adapterClass' => '\Gaufrette\Adapter\Local',
'class' => '\Gaufrette\Filesystem'
]);
Thanks for working on this file plugin, it looks well designed.
I'm having issues installing it though. I'm using cake 3.8, so I assume I need version 2. This is what I've tried.
this produces a deprecation error
After editing
config/bootstrap.php
withI get the following exception: