console.old.php 361 B

123456789101112131415161718192021
  1. #!/usr/bin/php
  2. <?php
  3. // CONFIG
  4. define('APP_DIR', realpath(__DIR__ . '/..'));
  5. define('VENDOR_DIR', APP_DIR . '/vendor');
  6. // AUTOLOAD
  7. $loader = require VENDOR_DIR . '/autoload.php';
  8. $loader->setPsr4('App\\', APP_DIR . '/src');
  9. \KarmaFW\App::boot();
  10. //\KarmaFW\App::getDb()->execute("set names utf8");
  11. // APP ROUTE & GO
  12. \KarmaFW\App::routeCommand($argv);