mirror of
https://github.com/filegator/filegator.git
synced 2025-08-07 15:46:42 +02:00
Website generation with Couscous
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
],
|
||||
],
|
||||
],</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>
|
||||
|
||||
</div>
|
||||
|
@@ -110,9 +110,7 @@
|
||||
<pre><code> 'Filegator\Services\Session\SessionStorageInterface' => [
|
||||
'handler' => '\Filegator\Services\Session\Adapters\SessionStorage',
|
||||
'config' => [
|
||||
'session_handler' => 'database',
|
||||
'available' => [
|
||||
'database' => function () {
|
||||
'handler' => function () {
|
||||
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
|
||||
'mysql://root:password@localhost:3360/filegator'
|
||||
);
|
||||
@@ -121,7 +119,6 @@
|
||||
},
|
||||
],
|
||||
],
|
||||
],
|
||||
</code></pre>
|
||||
<p>Don't forget to enter correct database details.</p>
|
||||
<h2 id="tweaking-session-options">Tweaking session options</h2>
|
||||
@@ -130,9 +127,7 @@ For example you can pass <code>cookie_lifetime</code> parameter to extend defaul
|
||||
<pre><code> 'Filegator\Services\Session\SessionStorageInterface' => [
|
||||
'handler' => '\Filegator\Services\Session\Adapters\SessionStorage',
|
||||
'config' => [
|
||||
'session_handler' => 'database',
|
||||
'available' => [
|
||||
'database' => function () {
|
||||
'handler' => function () {
|
||||
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
|
||||
'mysql://root:password@localhost:3360/filegator'
|
||||
);
|
||||
@@ -143,7 +138,6 @@ For example you can pass <code>cookie_lifetime</code> parameter to extend defaul
|
||||
},
|
||||
],
|
||||
],
|
||||
],
|
||||
</code></pre>
|
||||
</section>
|
||||
|
||||
|
@@ -108,16 +108,13 @@
|
||||
'config' => [
|
||||
'separator' => '/',
|
||||
'config' => [],
|
||||
'filesystem_adapter' => 'localfilesystem',
|
||||
'adapters' => [
|
||||
'localfilesystem' => function () {
|
||||
'adapter' => function () {
|
||||
return new \League\Flysystem\Adapter\Local(
|
||||
__DIR__.'/repository'
|
||||
);
|
||||
},
|
||||
],
|
||||
],
|
||||
],
|
||||
</code></pre>
|
||||
<h2 id="ftp-adapter">FTP Adapter</h2>
|
||||
<p>See official <a href="https://flysystem.thephpleague.com/docs/adapter/ftp/">documentation</a></p>
|
||||
@@ -126,9 +123,7 @@
|
||||
'config' => [
|
||||
'separator' => '/',
|
||||
'config' => [],
|
||||
'filesystem_adapter' => 'ftp',
|
||||
'adapters' => [
|
||||
'ftp' => function () {
|
||||
'adapter' => function () {
|
||||
return new \League\Flysystem\Adapter\Ftp([
|
||||
'host' => 'example.com',
|
||||
'username' => 'demo',
|
||||
@@ -139,7 +134,6 @@
|
||||
},
|
||||
],
|
||||
],
|
||||
],
|
||||
</code></pre>
|
||||
<h2 id="sftp-adapter">SFTP Adapter</h2>
|
||||
<p>You must require additional library <code>composer require league/flysystem-sftp</code>.</p>
|
||||
@@ -149,9 +143,7 @@
|
||||
'config' => [
|
||||
'separator' => '/',
|
||||
'config' => [],
|
||||
'filesystem_adapter' => 'sftp',
|
||||
'adapters' => [
|
||||
'sftp' => function () {
|
||||
'adapter' => function () {
|
||||
return new \League\Flysystem\Sftp\SftpAdapter([
|
||||
'host' => 'example.com',
|
||||
'port' => 22,
|
||||
@@ -162,7 +154,6 @@
|
||||
},
|
||||
],
|
||||
],
|
||||
],
|
||||
</code></pre>
|
||||
<h2 id="dropbox-adapter">Dropbox Adapter</h2>
|
||||
<p>You must require additional library <code>composer require spatie/flysystem-dropbox</code>.</p>
|
||||
@@ -171,10 +162,10 @@
|
||||
'handler' => '\Filegator\Services\Storage\Filesystem',
|
||||
'config' => [
|
||||
'separator' => '/',
|
||||
'config' => [],
|
||||
'filesystem_adapter' => 'dropbox',
|
||||
'adapters' => [
|
||||
'dropbox' => function () {
|
||||
'config' => [
|
||||
'case_sensitive' => false,
|
||||
],
|
||||
'adapter' => function () {
|
||||
$authorizationToken = '1234';
|
||||
$client = new \Spatie\Dropbox\Client($authorizationToken);
|
||||
|
||||
@@ -182,7 +173,6 @@
|
||||
},
|
||||
],
|
||||
],
|
||||
],
|
||||
</code></pre>
|
||||
</section>
|
||||
|
||||
|
Reference in New Issue
Block a user