1234567891011121314151617181920212223242526272829303132 |
- <?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');
- // Load default service providers and service container bindings.
- // Add other service providers using $app->register.
- $app->register(Hawese\Core\Providers\CoreServiceProvider::class);
- return $app;
|