diff --git a/configuration/logging.html b/configuration/logging.html index 0296a9b..68c4723 100644 --- a/configuration/logging.html +++ b/configuration/logging.html @@ -113,7 +113,7 @@ ], ], ], -
There are many different handlers you can use. Some of them are listed here.
+There are many different handlers you can add ot top of the stack (monolog_handlers array). Some of them are listed here.
diff --git a/configuration/session.html b/configuration/session.html index 1a3c9e9..2248364 100644 --- a/configuration/session.html +++ b/configuration/session.html @@ -110,16 +110,13 @@ 'Filegator\Services\Session\SessionStorageInterface' => [
'handler' => '\Filegator\Services\Session\Adapters\SessionStorage',
'config' => [
- 'session_handler' => 'database',
- 'available' => [
- 'database' => function () {
- $handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
+ 'handler' => function () {
+ $handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
'mysql://root:password@localhost:3360/filegator'
- );
+ );
- return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([], $handler);
- },
- ],
+ return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([], $handler);
+ },
],
],
@@ -130,18 +127,15 @@ For example you can pass cookie_lifetime
parameter to extend defaul
'Filegator\Services\Session\SessionStorageInterface' => [
'handler' => '\Filegator\Services\Session\Adapters\SessionStorage',
'config' => [
- 'session_handler' => 'database',
- 'available' => [
- 'database' => function () {
- $handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
+ 'handler' => function () {
+ $handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
'mysql://root:password@localhost:3360/filegator'
- );
+ );
- return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([
+ return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([
'cookie_lifetime' => 365 * 24 * 60 * 60, // one year
- ], $handler);
- },
- ],
+ ], $handler);
+ },
],
],
diff --git a/configuration/storage.html b/configuration/storage.html
index 8af147a..7d1a001 100644
--- a/configuration/storage.html
+++ b/configuration/storage.html
@@ -108,14 +108,11 @@
'config' => [
'separator' => '/',
'config' => [],
- 'filesystem_adapter' => 'localfilesystem',
- 'adapters' => [
- 'localfilesystem' => function () {
- return new \League\Flysystem\Adapter\Local(
- __DIR__.'/repository'
- );
- },
- ],
+ 'adapter' => function () {
+ return new \League\Flysystem\Adapter\Local(
+ __DIR__.'/repository'
+ );
+ },
],
],
@@ -126,18 +123,15 @@
'config' => [
'separator' => '/',
'config' => [],
- 'filesystem_adapter' => 'ftp',
- 'adapters' => [
- 'ftp' => function () {
- return new \League\Flysystem\Adapter\Ftp([
- 'host' => 'example.com',
- 'username' => 'demo',
- 'password' => 'password',
- 'port' => 21,
- 'timeout' => 10,
- ]);
- },
- ],
+ 'adapter' => function () {
+ return new \League\Flysystem\Adapter\Ftp([
+ 'host' => 'example.com',
+ 'username' => 'demo',
+ 'password' => 'password',
+ 'port' => 21,
+ 'timeout' => 10,
+ ]);
+ },
],
],
@@ -149,18 +143,15 @@
'config' => [
'separator' => '/',
'config' => [],
- 'filesystem_adapter' => 'sftp',
- 'adapters' => [
- 'sftp' => function () {
- return new \League\Flysystem\Sftp\SftpAdapter([
- 'host' => 'example.com',
- 'port' => 22,
- 'username' => 'demo',
- 'password' => 'password',
- 'timeout' => 10,
- ]);
- },
- ],
+ 'adapter' => function () {
+ return new \League\Flysystem\Sftp\SftpAdapter([
+ 'host' => 'example.com',
+ 'port' => 22,
+ 'username' => 'demo',
+ 'password' => 'password',
+ 'timeout' => 10,
+ ]);
+ },
],
],
@@ -171,16 +162,15 @@
'handler' => '\Filegator\Services\Storage\Filesystem',
'config' => [
'separator' => '/',
- 'config' => [],
- 'filesystem_adapter' => 'dropbox',
- 'adapters' => [
- 'dropbox' => function () {
- $authorizationToken = '1234';
- $client = new \Spatie\Dropbox\Client($authorizationToken);
-
- return new \Spatie\FlysystemDropbox\DropboxAdapter($client);
- },
+ 'config' => [
+ 'case_sensitive' => false,
],
+ 'adapter' => function () {
+ $authorizationToken = '1234';
+ $client = new \Spatie\Dropbox\Client($authorizationToken);
+
+ return new \Spatie\FlysystemDropbox\DropboxAdapter($client);
+ },
],
],