app.php 1018 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. // Copyright 2019 Hackware SpA <https://hackware.cl>.
  3. // This file is part of "Hackware's Digital Wallet" and licensed under the
  4. // terms of the GNU Affero General Public License version 3, or (at your
  5. // option) a later version. You should have received a copy of this license
  6. // along with the software. If not, see <https://www.gnu.org/licenses/>.
  7. require_once __DIR__ . '/../vendor/autoload.php';
  8. // Dotenv
  9. (new Laravel\Lumen\Bootstrap\LoadEnvironmentVariables(
  10. dirname(__DIR__)
  11. ))->bootstrap();
  12. // Create application
  13. $app = new Laravel\Lumen\Application(
  14. dirname(__DIR__)
  15. );
  16. // Custom configuration
  17. // In order to configure other packages, copy its configuration files into
  18. // the config/ dir and add it with $app->configure('file-without-ext').
  19. $app->configure('app');
  20. $app->configure('cors');
  21. // Load default service providers and service container bindings.
  22. // Add other service providers using $app->register.
  23. $app->register(Hawese\Core\Providers\CoreServiceProvider::class);
  24. return $app;