Skip to content

Commit 7b95c68

Browse files
committed
Change Storage directory to be set from environment.
1 parent 6f79a72 commit 7b95c68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
$container->add(ResponseInterface::class, Response::class);
5858

5959
$container->share(FilesystemInterface::class, function () use ($request) {
60-
// @FIXME: Filesystem root and the $adapter should be configurable.
60+
// @FIXME: Filesystem $adapter should be configurable.
6161
// Implement this with `$filesystem = \MJRider\FlysystemFactory\create(getenv('STORAGE_ENDPOINT'));`
62-
$filesystemRoot = __DIR__ . '/../tests/fixtures';
62+
$filesystemRoot = getenv('STORAGE_ENDPOINT') ?: __DIR__ . '/../tests/fixtures';
6363

6464
$adapter = new \League\Flysystem\Adapter\Local($filesystemRoot);
6565

0 commit comments

Comments
 (0)