public/index.php line 19

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of SolidInvoice project.
  4.  *
  5.  * (c) Pierre du Plessis <open-source@solidworx.co>
  6.  *
  7.  * This source file is subject to the MIT license that is bundled
  8.  * with this source code in the file LICENSE.
  9.  */
  10. use SolidInvoice\Kernel;
  11. $_SERVER['APP_RUNTIME_OPTIONS'] = [
  12.     'env_var_name' => 'SOLIDINVOICE_ENV',
  13.     'debug_var_name' => 'SOLIDINVOICE_DEBUG'
  14. ];
  15. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  16. return static function (array $context) {
  17.     return new Kernel($context['SOLIDINVOICE_ENV'], (bool) $context['SOLIDINVOICE_DEBUG']);
  18. };