2015-09-03 07:46:08 +02:00
|
|
|
---
|
2015-12-09 22:19:23 +01:00
|
|
|
Name: coreflysystem
|
2015-09-03 07:46:08 +02:00
|
|
|
---
|
2016-08-19 00:51:35 +02:00
|
|
|
SilverStripe\Core\Injector\Injector:
|
2015-09-03 07:46:08 +02:00
|
|
|
# Define the default adapter for this filesystem
|
2015-12-09 22:19:23 +01:00
|
|
|
FlysystemPublicAdapter:
|
2016-08-19 00:51:35 +02:00
|
|
|
class: 'SilverStripe\Assets\Flysystem\PublicAssetAdapter'
|
2015-12-09 22:19:23 +01:00
|
|
|
# Define the secondary adapter for protected assets
|
|
|
|
FlysystemProtectedAdapter:
|
2016-08-19 00:51:35 +02:00
|
|
|
class: 'SilverStripe\Assets\Flysystem\ProtectedAssetAdapter'
|
2015-09-03 07:46:08 +02:00
|
|
|
# Define the default filesystem
|
2015-12-09 22:19:23 +01:00
|
|
|
FlysystemPublicBackend:
|
2015-09-03 07:46:08 +02:00
|
|
|
class: 'League\Flysystem\Filesystem'
|
|
|
|
constructor:
|
2015-12-09 22:19:23 +01:00
|
|
|
Adapter: '%$FlysystemPublicAdapter'
|
|
|
|
Config:
|
|
|
|
visibility: public
|
|
|
|
# Define the secondary filesystem for protected assets
|
|
|
|
FlysystemProtectedBackend:
|
|
|
|
class: 'League\Flysystem\Filesystem'
|
|
|
|
constructor:
|
|
|
|
Adapter: '%$FlysystemProtectedAdapter'
|
|
|
|
Config:
|
|
|
|
visibility: private
|
|
|
|
---
|
|
|
|
Name: coreassets
|
|
|
|
After:
|
|
|
|
- '#coreflysystem'
|
|
|
|
---
|
2016-08-19 00:51:35 +02:00
|
|
|
SilverStripe\Core\Injector\Injector:
|
2015-09-03 07:46:08 +02:00
|
|
|
# Define our SS asset backend
|
|
|
|
AssetStore:
|
2016-08-19 00:51:35 +02:00
|
|
|
class: 'SilverStripe\Assets\Flysystem\FlysystemAssetStore'
|
2015-09-03 07:46:08 +02:00
|
|
|
properties:
|
2015-12-09 22:19:23 +01:00
|
|
|
PublicFilesystem: '%$FlysystemPublicBackend'
|
|
|
|
ProtectedFilesystem: '%$FlysystemProtectedBackend'
|
|
|
|
ProtectedFileController:
|
2016-08-19 00:51:35 +02:00
|
|
|
class: SilverStripe\Assets\Storage\ProtectedFileController
|
2015-12-09 22:19:23 +01:00
|
|
|
properties:
|
|
|
|
RouteHandler: '%$AssetStore'
|
2015-09-03 07:46:08 +02:00
|
|
|
AssetNameGenerator:
|
2016-08-19 00:51:35 +02:00
|
|
|
class: SilverStripe\Assets\Storage\DefaultAssetNameGenerator
|
2015-09-03 07:46:08 +02:00
|
|
|
type: prototype
|
2015-11-30 03:03:46 +01:00
|
|
|
# Requirements config
|
2015-10-12 06:34:34 +02:00
|
|
|
GeneratedAssetHandler:
|
2016-08-19 00:51:35 +02:00
|
|
|
class: SilverStripe\Assets\Flysystem\GeneratedAssetHandler
|
2015-10-12 06:34:34 +02:00
|
|
|
properties:
|
2015-12-09 22:19:23 +01:00
|
|
|
Filesystem: '%$FlysystemPublicBackend'
|
2016-08-19 00:51:35 +02:00
|
|
|
SilverStripe\View\Requirements_Minifier:
|
2015-10-23 02:51:26 +02:00
|
|
|
class: SilverStripe\View\JSMinifier
|
2016-08-19 00:51:35 +02:00
|
|
|
SilverStripe\View\Requirements_Backend:
|
2015-11-30 03:03:46 +01:00
|
|
|
properties:
|
|
|
|
AssetHandler: '%$GeneratedAssetHandler'
|
2015-12-09 22:19:23 +01:00
|
|
|
---
|
|
|
|
Name: coreassetroutes
|
|
|
|
After:
|
|
|
|
- '#coreassets'
|
|
|
|
---
|
2016-08-19 00:51:35 +02:00
|
|
|
SilverStripe\Control\Director:
|
2015-12-09 22:19:23 +01:00
|
|
|
rules:
|
2016-08-19 00:51:35 +02:00
|
|
|
'assets': ProtectedFileController
|
2015-12-09 22:19:23 +01:00
|
|
|
---
|
|
|
|
Name: imageconfig
|
|
|
|
---
|
2016-08-19 00:51:35 +02:00
|
|
|
SilverStripe\Core\Injector\Injector:
|
|
|
|
SilverStripe\Assets\Image_Backend:
|
|
|
|
class: SilverStripe\Assets\GDBackend
|
|
|
|
Image_Backend: '%$SilverStripe\Assets\Image_Backend'
|