Add flysystem-bundle recipe

This commit is contained in:
Titouan Galopin
2019-04-19 13:17:55 +02:00
parent 624ce21e9e
commit b182f64f72
4 changed files with 32 additions and 0 deletions
@@ -0,0 +1,7 @@
# Read the documentation at https://github.com/thephpleague/flysystem-bundle/blob/master/docs/1-getting-started.md
flysystem:
storages:
default.storage:
adapter: 'local'
options:
directory: '%kernel.project_dir%/%VAR_DIR%/storage/default'
@@ -0,0 +1,9 @@
{
"bundles": {
"League\\FlysystemBundle\\FlysystemBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"var/storage/": "%VAR_DIR%/storage/"
}
}
@@ -0,0 +1,16 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> You just installed league/flysystem-bundle! </>
<bg=blue;fg=white> What's next? </>
<bg=blue;fg=white> </>
* <fg=blue>Use</> the default storage immediately:
public function __construct(FilesystemInterface $defaultStorage)
{
...
}
* <fg=blue>Configure</> your own storages in <comment>config/packages/flysystem.yaml</comment>.
* <fg=blue>Read</> the documentation at:
<comment>https://github.com/thephpleague/flysystem-bundle/blob/master/docs/1-getting-started.md</>