2015-09-03 07:46:08 +02:00
|
|
|
---
|
|
|
|
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
|
2015-09-15 04:52:02 +02:00
|
|
|
# Image mechanism
|
|
|
|
Image_Backend: GDBackend
|
2015-11-30 03:03:46 +01:00
|
|
|
# Requirements config
|
2015-10-12 06:34:34 +02:00
|
|
|
GeneratedAssetHandler:
|
2015-11-26 03:19:43 +01:00
|
|
|
class: SilverStripe\Filesystem\Storage\FlysystemGeneratedAssetHandler
|
2015-10-12 06:34:34 +02:00
|
|
|
properties:
|
2015-11-26 03:19:43 +01:00
|
|
|
Filesystem: '%$FlysystemBackend'
|
2015-10-23 02:51:26 +02:00
|
|
|
Requirements_Minifier:
|
|
|
|
class: SilverStripe\View\JSMinifier
|
2015-11-30 03:03:46 +01:00
|
|
|
Requirements_Backend:
|
|
|
|
properties:
|
|
|
|
AssetHandler: '%$GeneratedAssetHandler'
|