mirror of
https://github.com/filegator/filegator.git
synced 2025-08-08 15:17:02 +02:00
Website generation with Couscous
This commit is contained in:
@@ -113,7 +113,7 @@
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
],</code></pre>
|
],</code></pre>
|
||||||
<p>There are many different handlers you can use. Some of them are listed <a href="https://github.com/Seldaek/monolog#documentation">here</a>.</p>
|
<p>There are many different handlers you can add ot top of the stack (monolog_handlers array). Some of them are listed <a href="https://github.com/Seldaek/monolog#documentation">here</a>.</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@@ -110,16 +110,13 @@
|
|||||||
<pre><code> 'Filegator\Services\Session\SessionStorageInterface' => [
|
<pre><code> 'Filegator\Services\Session\SessionStorageInterface' => [
|
||||||
'handler' => '\Filegator\Services\Session\Adapters\SessionStorage',
|
'handler' => '\Filegator\Services\Session\Adapters\SessionStorage',
|
||||||
'config' => [
|
'config' => [
|
||||||
'session_handler' => 'database',
|
'handler' => function () {
|
||||||
'available' => [
|
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
|
||||||
'database' => function () {
|
|
||||||
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
|
|
||||||
'mysql://root:password@localhost:3360/filegator'
|
'mysql://root:password@localhost:3360/filegator'
|
||||||
);
|
);
|
||||||
|
|
||||||
return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([], $handler);
|
return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([], $handler);
|
||||||
},
|
},
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
</code></pre>
|
</code></pre>
|
||||||
@@ -130,18 +127,15 @@ For example you can pass <code>cookie_lifetime</code> parameter to extend defaul
|
|||||||
<pre><code> 'Filegator\Services\Session\SessionStorageInterface' => [
|
<pre><code> 'Filegator\Services\Session\SessionStorageInterface' => [
|
||||||
'handler' => '\Filegator\Services\Session\Adapters\SessionStorage',
|
'handler' => '\Filegator\Services\Session\Adapters\SessionStorage',
|
||||||
'config' => [
|
'config' => [
|
||||||
'session_handler' => 'database',
|
'handler' => function () {
|
||||||
'available' => [
|
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
|
||||||
'database' => function () {
|
|
||||||
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
|
|
||||||
'mysql://root:password@localhost:3360/filegator'
|
'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
|
'cookie_lifetime' => 365 * 24 * 60 * 60, // one year
|
||||||
], $handler);
|
], $handler);
|
||||||
},
|
},
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
@@ -108,14 +108,11 @@
|
|||||||
'config' => [
|
'config' => [
|
||||||
'separator' => '/',
|
'separator' => '/',
|
||||||
'config' => [],
|
'config' => [],
|
||||||
'filesystem_adapter' => 'localfilesystem',
|
'adapter' => function () {
|
||||||
'adapters' => [
|
return new \League\Flysystem\Adapter\Local(
|
||||||
'localfilesystem' => function () {
|
__DIR__.'/repository'
|
||||||
return new \League\Flysystem\Adapter\Local(
|
);
|
||||||
__DIR__.'/repository'
|
},
|
||||||
);
|
|
||||||
},
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
</code></pre>
|
</code></pre>
|
||||||
@@ -126,18 +123,15 @@
|
|||||||
'config' => [
|
'config' => [
|
||||||
'separator' => '/',
|
'separator' => '/',
|
||||||
'config' => [],
|
'config' => [],
|
||||||
'filesystem_adapter' => 'ftp',
|
'adapter' => function () {
|
||||||
'adapters' => [
|
return new \League\Flysystem\Adapter\Ftp([
|
||||||
'ftp' => function () {
|
'host' => 'example.com',
|
||||||
return new \League\Flysystem\Adapter\Ftp([
|
'username' => 'demo',
|
||||||
'host' => 'example.com',
|
'password' => 'password',
|
||||||
'username' => 'demo',
|
'port' => 21,
|
||||||
'password' => 'password',
|
'timeout' => 10,
|
||||||
'port' => 21,
|
]);
|
||||||
'timeout' => 10,
|
},
|
||||||
]);
|
|
||||||
},
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
</code></pre>
|
</code></pre>
|
||||||
@@ -149,18 +143,15 @@
|
|||||||
'config' => [
|
'config' => [
|
||||||
'separator' => '/',
|
'separator' => '/',
|
||||||
'config' => [],
|
'config' => [],
|
||||||
'filesystem_adapter' => 'sftp',
|
'adapter' => function () {
|
||||||
'adapters' => [
|
return new \League\Flysystem\Sftp\SftpAdapter([
|
||||||
'sftp' => function () {
|
'host' => 'example.com',
|
||||||
return new \League\Flysystem\Sftp\SftpAdapter([
|
'port' => 22,
|
||||||
'host' => 'example.com',
|
'username' => 'demo',
|
||||||
'port' => 22,
|
'password' => 'password',
|
||||||
'username' => 'demo',
|
'timeout' => 10,
|
||||||
'password' => 'password',
|
]);
|
||||||
'timeout' => 10,
|
},
|
||||||
]);
|
|
||||||
},
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
</code></pre>
|
</code></pre>
|
||||||
@@ -171,16 +162,15 @@
|
|||||||
'handler' => '\Filegator\Services\Storage\Filesystem',
|
'handler' => '\Filegator\Services\Storage\Filesystem',
|
||||||
'config' => [
|
'config' => [
|
||||||
'separator' => '/',
|
'separator' => '/',
|
||||||
'config' => [],
|
'config' => [
|
||||||
'filesystem_adapter' => 'dropbox',
|
'case_sensitive' => false,
|
||||||
'adapters' => [
|
|
||||||
'dropbox' => function () {
|
|
||||||
$authorizationToken = '1234';
|
|
||||||
$client = new \Spatie\Dropbox\Client($authorizationToken);
|
|
||||||
|
|
||||||
return new \Spatie\FlysystemDropbox\DropboxAdapter($client);
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
|
'adapter' => function () {
|
||||||
|
$authorizationToken = '1234';
|
||||||
|
$client = new \Spatie\Dropbox\Client($authorizationToken);
|
||||||
|
|
||||||
|
return new \Spatie\FlysystemDropbox\DropboxAdapter($client);
|
||||||
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
Reference in New Issue
Block a user