Website generation with Couscous

This commit is contained in:
Milos Stojanovic
2019-11-01 15:57:04 +01:00
parent edadd1570f
commit 357b2597c0
2 changed files with 14 additions and 1 deletions

View File

@@ -168,6 +168,19 @@
], ],
</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="configuring-session-service-to-use-redis">Configuring Session service to use Redis</h2>
<p>You must require additional library <code>composer require predis/predis</code></p>
<pre><code> 'Filegator\Services\Session\SessionStorageInterface' =&gt; [
'handler' =&gt; '\Filegator\Services\Session\Adapters\SessionStorage',
'config' =&gt; [
'handler' =&gt; function () {
$predis = new \Predis\Client();
$handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler($predis);
return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([], $handler);
},
],
],</code></pre>
<h2 id="tweaking-session-options">Tweaking session options</h2> <h2 id="tweaking-session-options">Tweaking session options</h2>
<p>The underying <a href="https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php">session component</a> accepts array of options. <p>The underying <a href="https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php">session component</a> accepts array of options.
For example you can pass <code>cookie_lifetime</code> parameter to extend default session lifetime:</p> For example you can pass <code>cookie_lifetime</code> parameter to extend default session lifetime:</p>

View File

@@ -144,7 +144,7 @@
<ul> <ul>
<li>Multiple storage adapters (Local, FTP, Amazon S3, Dropbox, DO Spaces, Azure Blob and many others via <a href="https://github.com/thephpleague/flysystem">Flysystem</a>)</li> <li>Multiple storage adapters (Local, FTP, Amazon S3, Dropbox, DO Spaces, Azure Blob and many others via <a href="https://github.com/thephpleague/flysystem">Flysystem</a>)</li>
<li>Multiple auth adapters with roles and permissions (Store users in json file or database)</li> <li>Multiple auth adapters with roles and permissions (Store users in json file or database)</li>
<li>Multiple session adapters (Native File, Pdo, MongoDB, Memcached and others via <a href="https://github.com/symfony/symfony/tree/master/src/Symfony/Component/HttpFoundation/Session/Storage/Handler">Symfony</a>)</li> <li>Multiple session adapters (Native File, Pdo, Redis, MongoDB, Memcached and others via <a href="https://github.com/symfony/symfony/tree/master/src/Symfony/Component/HttpFoundation/Session/Storage/Handler">Symfony</a>)</li>
<li>Single page front-end (built with <a href="https://github.com/vuejs/vue">Vuejs</a>, <a href="https://github.com/jgthms/bulma">Bulma</a> and <a href="https://github.com/buefy/buefy">Buefy</a>)</li> <li>Single page front-end (built with <a href="https://github.com/vuejs/vue">Vuejs</a>, <a href="https://github.com/jgthms/bulma">Bulma</a> and <a href="https://github.com/buefy/buefy">Buefy</a>)</li>
<li>Chunked uploads (built with <a href="https://github.com/23/resumable.js">Resumable.js</a>)</li> <li>Chunked uploads (built with <a href="https://github.com/23/resumable.js">Resumable.js</a>)</li>
<li>Zip and bulk download support</li> <li>Zip and bulk download support</li>