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