i-lateral / silverstripe-custom-filesystem
Customised filesystem adaptor that allows changing of assets location
Installs: 659
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- silverstripe/assets: ~1.0
- silverstripe/framework: ~4.0
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2019-12-27 13:44:16 UTC
README
Version of the local filesystem that allows setting of a custom location (other then assets) via env/config variables
Installation
composer require i-lateral/silverstripe-custom-filesystem
NOTE Once installed, this module will automatically replace the default FlySystem adapters with the custom ones provided by this module.
Configuration
Once you have installed the module, you can change the assets location by using the following SilverStripe config variable:
SilverStripe\Assets\Flysystem\AssetAdapter.asset_path
For example, you can add the following to your config.yml:
--- Name: myconfig --- SilverStripe\Assets\Flysystem\AssetAdapter: asset_path: 'customassetsfolder'