<?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();
public function __construct() { $configs = (require __DIR__ . '/__config.php'); Container::init($configs); }