index.old.php 425 B

123456789101112131415161718192021222324
  1. <?php
  2. // CONFIG
  3. define('APP_DIR', realpath(__DIR__ . '/..'));
  4. define('VENDOR_DIR', APP_DIR . '/vendor');
  5. // AUTOLOAD
  6. $loader = require VENDOR_DIR . '/autoload.php';
  7. $loader->setPsr4('App\\', APP_DIR . '/src');
  8. use \KarmaFW\App;
  9. use \KarmaFW\App\Request;
  10. use \KarmaFW\App\Response;
  11. use \KarmaFW\App\Middlewares as KarmaMiddlewares;
  12. ini_set('display_errors', 1);
  13. \KarmaFW\WebApp::boot();
  14. \KarmaFW\WebApp::routeUrl();