silverstripe-framework/_config/asset.yml
Damian Mooyman be239896d3 API Refactor of File / Folder to use DBFile
API Remove filesystem sync
API to handle file manipulations
2015-10-13 11:57:39 +13:00

28 lines
838 B
YAML

---
Name: assetstore
---
Injector:
# Public url plugin
FlysystemUrlPlugin:
class: 'SilverStripe\Filesystem\Flysystem\FlysystemUrlPlugin'
# Define the default adapter for this filesystem
FlysystemDefaultAdapter:
class: 'SilverStripe\Filesystem\Flysystem\AssetAdapter'
# Define the default filesystem
FlysystemBackend:
class: 'League\Flysystem\Filesystem'
constructor:
Adapter: '%$FlysystemDefaultAdapter'
calls:
PublicURLPlugin: [ addPlugin, [ %$FlysystemUrlPlugin ] ]
# Define our SS asset backend
AssetStore:
class: 'SilverStripe\Filesystem\Flysystem\FlysystemAssetStore'
properties:
Filesystem: '%$FlysystemBackend'
AssetNameGenerator:
class: SilverStripe\Filesystem\Storage\DefaultAssetNameGenerator
type: prototype
# Image mechanism
Image_Backend: GDBackend