Hello Webino!

Local Files 1:<pre class="tracy-dump"><span class="tracy-toggle"><span class="tracy-dump-array">array</span> (2)</span> <div><span class="tracy-dump-indent"> </span><span class="tracy-dump-key">0</span> => <span class="tracy-toggle tracy-collapsed"><span class="tracy-dump-array">array</span> (8)</span> <div class="tracy-collapsed"><span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">type</span> => <span class="tracy-dump-string">"file"</span> (4) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">path</span> => <span class="tracy-dump-string">".htaccess"</span> (9) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">timestamp</span> => <span class="tracy-dump-number">1509321238</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">size</span> => <span class="tracy-dump-number">210</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">dirname</span> => <span class="tracy-dump-string">""</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">basename</span> => <span class="tracy-dump-string">".htaccess"</span> (9) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">extension</span> => <span class="tracy-dump-string">"htaccess"</span> (8) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">filename</span> => <span class="tracy-dump-string">""</span> </div><span class="tracy-dump-indent"> </span><span class="tracy-dump-key">1</span> => <span class="tracy-toggle tracy-collapsed"><span class="tracy-dump-array">array</span> (8)</span> <div class="tracy-collapsed"><span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">type</span> => <span class="tracy-dump-string">"file"</span> (4) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">path</span> => <span class="tracy-dump-string">"index.php"</span> (9) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">timestamp</span> => <span class="tracy-dump-number">1509321238</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">size</span> => <span class="tracy-dump-number">1521</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">dirname</span> => <span class="tracy-dump-string">""</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">basename</span> => <span class="tracy-dump-string">"index.php"</span> (9) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">extension</span> => <span class="tracy-dump-string">"php"</span> (3) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">filename</span> => <span class="tracy-dump-string">"index"</span> (5) </div></div></pre>
Local Files 2:<pre class="tracy-dump"><span class="tracy-toggle"><span class="tracy-dump-array">array</span> (2)</span> <div><span class="tracy-dump-indent"> </span><span class="tracy-dump-key">0</span> => <span class="tracy-toggle tracy-collapsed"><span class="tracy-dump-array">array</span> (8)</span> <div class="tracy-collapsed"><span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">type</span> => <span class="tracy-dump-string">"file"</span> (4) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">path</span> => <span class="tracy-dump-string">".htaccess"</span> (9) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">timestamp</span> => <span class="tracy-dump-number">1509321238</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">size</span> => <span class="tracy-dump-number">210</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">dirname</span> => <span class="tracy-dump-string">""</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">basename</span> => <span class="tracy-dump-string">".htaccess"</span> (9) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">extension</span> => <span class="tracy-dump-string">"htaccess"</span> (8) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">filename</span> => <span class="tracy-dump-string">""</span> </div><span class="tracy-dump-indent"> </span><span class="tracy-dump-key">1</span> => <span class="tracy-toggle tracy-collapsed"><span class="tracy-dump-array">array</span> (8)</span> <div class="tracy-collapsed"><span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">type</span> => <span class="tracy-dump-string">"file"</span> (4) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">path</span> => <span class="tracy-dump-string">"index.php"</span> (9) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">timestamp</span> => <span class="tracy-dump-number">1509321238</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">size</span> => <span class="tracy-dump-number">1521</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">dirname</span> => <span class="tracy-dump-string">""</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">basename</span> => <span class="tracy-dump-string">"index.php"</span> (9) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">extension</span> => <span class="tracy-dump-string">"php"</span> (3) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">filename</span> => <span class="tracy-dump-string">"index"</span> (5) </div></div></pre>
Memory Files:<pre class="tracy-dump"><span class="tracy-toggle"><span class="tracy-dump-array">array</span> (1)</span> <div><span class="tracy-dump-indent"> </span><span class="tracy-dump-key">0</span> => <span class="tracy-toggle tracy-collapsed"><span class="tracy-dump-array">array</span> (9)</span> <div class="tracy-collapsed"><span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">type</span> => <span class="tracy-dump-string">"file"</span> (4) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">visibility</span> => <span class="tracy-dump-string">"public"</span> (6) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">timestamp</span> => <span class="tracy-dump-number">1511569167</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">size</span> => <span class="tracy-dump-number">0</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">path</span> => <span class="tracy-dump-string">"example.txt"</span> (11) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">dirname</span> => <span class="tracy-dump-string">""</span> <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">basename</span> => <span class="tracy-dump-string">"example.txt"</span> (11) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">extension</span> => <span class="tracy-dump-string">"txt"</span> (3) <span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">filename</span> => <span class="tracy-dump-string">"example"</span> (7) </div></div></pre>
Source Preview
<?php
/**
 * Filesystem Config
 * Webino Example
 */

use WebinoAppLib\Event\RouteEvent;
use 
WebinoAppLib\Feature\MemoryFilesystem;
use 
WebinoAppLib\Filesystem\LocalFiles;
use 
WebinoAppLib\Filesystem\InMemoryFiles;
use 
WebinoAppLib\Response\Content\SourcePreview;
use 
WebinoAppLib\Router\DefaultRoute;
use 
WebinoHtmlLib\Html;

require 
__DIR__ '/../../vendor/autoload.php';

$config Webino::config([
    
/**
     * Configuring the
     * memory filesystem.
     */
    
new MemoryFilesystem,
]);

$app Webino::application($configWebino::debugger(Webino::debuggerOptions()->setDevMode()->setBar()))->bootstrap();

$app->bind(DefaultRoute::class, function (RouteEvent $event) {
    
/**
     * Obtaining local
     * filesystem service.
     */
    
$localFiles1 $event->getApp()->file();
    
// or with adapter parameter
    
$localFiles2 $event->getApp()->file(LocalFiles::class);

    
/**
     * Obtaining memory
     * filesystem service.
     */
    
$memoryFiles $event->getApp()->file(InMemoryFiles::class);

    
// example memory file
    
$memoryFiles->put('example.txt'null);

    
$event->setResponse([
        new 
Html\Text('Hello Webino!'),
        new 
Html\FieldSet('Local Files 1:'$event->getApp()->debugR($localFiles1->listFiles())),
        new 
Html\FieldSet('Local Files 2:'$event->getApp()->debugR($localFiles2->listFiles())),
        new 
Html\FieldSet('Memory Files:'$event->getApp()->debugR($memoryFiles->listFiles())),
        new 
SourcePreview(__FILE__),
    ]);
});

$app->dispatch();