Example #1
0
 public function run()
 {
     $this->configs();
     $return = Container::dispatch();
     if ($return) {
         output($return, 'thend');
     }
 }
Example #2
0
<?php

/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/
require __DIR__ . '/../vendor/autoload.php';
function output($var, $tag = 'info')
{
    \Ws\Env::dump($var, $tag);
}
$configs = (require __DIR__ . '/app/__config.php');
\Ws\Mvc\Container::init($configs);
echo \Ws\Mvc\Container::dispatch();