mirror of
https://github.com/filegator/filegator.git
synced 2025-08-12 10:04:52 +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,9 +110,7 @@
|
|||||||
<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' => [
|
|
||||||
'database' => function () {
|
|
||||||
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
|
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
|
||||||
'mysql://root:password@localhost:3360/filegator'
|
'mysql://root:password@localhost:3360/filegator'
|
||||||
);
|
);
|
||||||
@@ -121,7 +119,6 @@
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<p>Don't forget to enter correct database details.</p>
|
<p>Don't forget to enter correct database details.</p>
|
||||||
<h2 id="tweaking-session-options">Tweaking session options</h2>
|
<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' => [
|
<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' => [
|
|
||||||
'database' => function () {
|
|
||||||
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
|
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler(
|
||||||
'mysql://root:password@localhost:3360/filegator'
|
'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>
|
</code></pre>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@@ -108,16 +108,13 @@
|
|||||||
'config' => [
|
'config' => [
|
||||||
'separator' => '/',
|
'separator' => '/',
|
||||||
'config' => [],
|
'config' => [],
|
||||||
'filesystem_adapter' => 'localfilesystem',
|
'adapter' => function () {
|
||||||
'adapters' => [
|
|
||||||
'localfilesystem' => function () {
|
|
||||||
return new \League\Flysystem\Adapter\Local(
|
return new \League\Flysystem\Adapter\Local(
|
||||||
__DIR__.'/repository'
|
__DIR__.'/repository'
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<h2 id="ftp-adapter">FTP Adapter</h2>
|
<h2 id="ftp-adapter">FTP Adapter</h2>
|
||||||
<p>See official <a href="https://flysystem.thephpleague.com/docs/adapter/ftp/">documentation</a></p>
|
<p>See official <a href="https://flysystem.thephpleague.com/docs/adapter/ftp/">documentation</a></p>
|
||||||
@@ -126,9 +123,7 @@
|
|||||||
'config' => [
|
'config' => [
|
||||||
'separator' => '/',
|
'separator' => '/',
|
||||||
'config' => [],
|
'config' => [],
|
||||||
'filesystem_adapter' => 'ftp',
|
'adapter' => function () {
|
||||||
'adapters' => [
|
|
||||||
'ftp' => function () {
|
|
||||||
return new \League\Flysystem\Adapter\Ftp([
|
return new \League\Flysystem\Adapter\Ftp([
|
||||||
'host' => 'example.com',
|
'host' => 'example.com',
|
||||||
'username' => 'demo',
|
'username' => 'demo',
|
||||||
@@ -139,7 +134,6 @@
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<h2 id="sftp-adapter">SFTP Adapter</h2>
|
<h2 id="sftp-adapter">SFTP Adapter</h2>
|
||||||
<p>You must require additional library <code>composer require league/flysystem-sftp</code>.</p>
|
<p>You must require additional library <code>composer require league/flysystem-sftp</code>.</p>
|
||||||
@@ -149,9 +143,7 @@
|
|||||||
'config' => [
|
'config' => [
|
||||||
'separator' => '/',
|
'separator' => '/',
|
||||||
'config' => [],
|
'config' => [],
|
||||||
'filesystem_adapter' => 'sftp',
|
'adapter' => function () {
|
||||||
'adapters' => [
|
|
||||||
'sftp' => function () {
|
|
||||||
return new \League\Flysystem\Sftp\SftpAdapter([
|
return new \League\Flysystem\Sftp\SftpAdapter([
|
||||||
'host' => 'example.com',
|
'host' => 'example.com',
|
||||||
'port' => 22,
|
'port' => 22,
|
||||||
@@ -162,7 +154,6 @@
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<h2 id="dropbox-adapter">Dropbox Adapter</h2>
|
<h2 id="dropbox-adapter">Dropbox Adapter</h2>
|
||||||
<p>You must require additional library <code>composer require spatie/flysystem-dropbox</code>.</p>
|
<p>You must require additional library <code>composer require spatie/flysystem-dropbox</code>.</p>
|
||||||
@@ -171,10 +162,10 @@
|
|||||||
'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 () {
|
'adapter' => function () {
|
||||||
$authorizationToken = '1234';
|
$authorizationToken = '1234';
|
||||||
$client = new \Spatie\Dropbox\Client($authorizationToken);
|
$client = new \Spatie\Dropbox\Client($authorizationToken);
|
||||||
|
|
||||||
@@ -182,7 +173,6 @@
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
|
||||||
</code></pre>
|
</code></pre>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user