app.php 422 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Spiral Framework.
  4. *
  5. * @license MIT
  6. * @author Anton Titov (Wolfy-J)
  7. */
  8. declare(strict_types=1);
  9. mb_internal_encoding('UTF-8');
  10. error_reporting(E_ALL | E_STRICT);
  11. ini_set('display_errors', 'stderr');
  12. //Composer
  13. require __DIR__ . '/vendor/autoload.php';
  14. //Initiating shared container, bindings, directories and etc
  15. $app = \App\App::init(['root' => __DIR__]);
  16. if ($app != null) {
  17. $app->serve();
  18. }