engineor / bsb-flysystem-runabove
Bridge to add flysystem-runabove to BsbFlysystem (which provides Flysystem to ZF2 projects)
v1.0.1
2015-11-01 00:03 UTC
Requires
- bushbaby/flysystem: ^1.0@dev
- engineor/flysystem-runabove: ^1.0@dev
This package is auto-updated.
Last update: 2024-12-14 20:30:59 UTC
README
Installation
composer require engineor/bsb-flysystem-runabove
Add the module to your application.config.php
:
return [ 'modules' => [ ... 'BsbFlysystem', 'Engineor\\Flysystem', // ADD THIS LINE 'Application', ... ], 'module_listener_options' => [ 'module_paths' => [ './module', './vendor', ], 'config_glob_paths' => [ 'config/autoload/{,*.}{global,local}.php', ], ], ];
Usage
See configuration section on flysystem-runabove for credential details.
<?php use Engineor\Flysystem\Runabove; return [ 'bsb_flysystem' => [ 'adapters' => [ 'runabove' => [ 'type' => 'runabove', 'options' => [ 'username' => ':username', 'password' => ':password', 'tenantId' => ':tenantId', 'container' => 'flysystem', 'region' => Runabove::REGION_EUROPE, // optional 'identity_endpoint' => Runabove::IDENTITY_ENDPOINT, // optional ], ], ], 'filesystems' => [ 'default' => [ 'adapter' => 'runabove', 'plugins' => [ 'League\Flysystem\Plugin\ListFiles', ], ], ], ];
Because of a service migration, the Object Storage should now be used on OVH public cloud.
Please use https://auth.cloud.ovh.net/v2.0
as identity_endpoint
values. Your region
should be either SBG1
, GRA1
or BHS1
.