dereuromark / cakephp-file-storage

Abstract file storage and upload plugin for CakePHP. Write to local disk, FTP, S3, Dropbox and more through a single interface. It's not just yet another uploader but a complete storage solution.
MIT License
4 stars 2 forks source link

Missing documentation #10

Open rudy1976s opened 10 months ago

rudy1976s commented 10 months ago

Hi Mark there are several broken links in the documentation:

The link of the installation package is wrong : I think the correct is "dereuromark/cakephp-file-storage": "4.0.0-beta*" for the cake 5.x branch, isnt' it ?

Could you please help because those documents are important to understand how to implement this very useful plugin Thank you in advance for your work!

Rudy

dereuromark commented 10 months ago

A PR to fix the docs are welcome I mainly ported this from burzum and there is still some work to be done.

rudy1976s commented 10 months ago

I am sorry but since I don't know how it works, it would be very hard for me to guess and write docs. I will wait for future releases and still use Josbeir implementation. Thank you !

dereuromark commented 3 weeks ago

I added a working example config here https://github.com/dereuromark/cakephp-file-storage/blob/master/config/app.example.php

Well, I legacy wise also use

// Container
$container = \App\Container\Container::getSingletonInstance();
$container->delegate(
    new League\Container\ReflectionContainer(),
);

// Storage setup
$storageFactory = new \PhpCollective\Infrastructure\Storage\StorageAdapterFactory($container);

At the beginning, but this is 1:1 working so far.