Created
June 22, 2023 02:40
-
-
Save timkelty/18a50c38cae3bcb1dc6b85f90d848f94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
'*' => [], | |
'dev' => [ | |
'container' => [ | |
'definitions' => [ | |
\craft\awss3\Fs::class => static function($container, $params, $config) { | |
$bucket = $config['bucket']; | |
$subfolder = $config['subfolder']; | |
$path = "assets/$bucket/$subfolder"; | |
return new \craft\fs\Local([ | |
'handle' => $config['handle'], | |
'hasUrls' => $config['hasUrls'], | |
'path' => "@webroot/$path", | |
'url' => "@web/$path", | |
]); | |
} | |
], | |
] | |
] | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment