mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
Merge pull request #350 from creative-commoners/pulls/5.0/optimal-file-resolution
ENH Remove duplicated configuration
This commit is contained in:
commit
a564e32580
@ -1,26 +0,0 @@
|
|||||||
# SilverStripe 4.4 changes the way files are resolved. `silverstripe-assets` resolves files using a variety of formats
|
|
||||||
# by default. When starting a brand new project on SilverStripe 4.4 or greater, those extra formats are not needed and
|
|
||||||
# will slowdown file resolution requests a bit. This config removes those redundant formats.
|
|
||||||
|
|
||||||
---
|
|
||||||
Name: project-assetsflysystem
|
|
||||||
After: '#assetsflysystem'
|
|
||||||
---
|
|
||||||
SilverStripe\Core\Injector\Injector:
|
|
||||||
# Define public resolution strategy
|
|
||||||
SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.public:
|
|
||||||
class: SilverStripe\Assets\FilenameParsing\FileIDHelperResolutionStrategy
|
|
||||||
properties:
|
|
||||||
ResolutionFileIDHelpers:
|
|
||||||
- '%$SilverStripe\Assets\FilenameParsing\HashFileIDHelper'
|
|
||||||
- '%$SilverStripe\Assets\FilenameParsing\NaturalFileIDHelper'
|
|
||||||
DefaultFileIDHelper: '%$SilverStripe\Assets\FilenameParsing\NaturalFileIDHelper'
|
|
||||||
VersionedStage: Live
|
|
||||||
# Define protected resolution strategy
|
|
||||||
SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.protected:
|
|
||||||
class: SilverStripe\Assets\FilenameParsing\FileIDHelperResolutionStrategy
|
|
||||||
properties:
|
|
||||||
DefaultFileIDHelper: '%$SilverStripe\Assets\FilenameParsing\HashFileIDHelper'
|
|
||||||
ResolutionFileIDHelpers:
|
|
||||||
- '%$SilverStripe\Assets\FilenameParsing\HashFileIDHelper'
|
|
||||||
VersionedStage: Stage
|
|
Loading…
Reference in New Issue
Block a user