mirror of
https://gitlab.com/izyim/prototypes/lumen-microservices/microservice-products-api.git
synced 2026-08-19 04:14:09 +00:00
initial commit
This commit is contained in:
+9
-8
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__.'/../vendor/autoload.php';
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
try {
|
||||
(new Dotenv\Dotenv(dirname(__DIR__)))->load();
|
||||
$dotenv = Dotenv\Dotenv::create(__DIR__ . '/..');
|
||||
$dotenv->load();
|
||||
} catch (Dotenv\Exception\InvalidPathException $e) {
|
||||
//
|
||||
}
|
||||
@@ -23,9 +24,9 @@ $app = new Laravel\Lumen\Application(
|
||||
dirname(__DIR__)
|
||||
);
|
||||
|
||||
$app->withFacades();
|
||||
$app->withFacades();
|
||||
|
||||
$app->withEloquent();
|
||||
$app->withEloquent();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -59,9 +60,9 @@ $app->singleton(
|
||||
|
|
||||
*/
|
||||
|
||||
$app->middleware([
|
||||
App\Http\Middleware\AuthenticateAccess::class
|
||||
]);
|
||||
$app->middleware([
|
||||
App\Http\Middleware\AuthenticateAccess::class
|
||||
]);
|
||||
|
||||
// $app->routeMiddleware([
|
||||
// 'auth' => App\Http\Middleware\Authenticate::class,
|
||||
@@ -96,7 +97,7 @@ $app->singleton(
|
||||
$app->router->group([
|
||||
'namespace' => 'App\Http\Controllers',
|
||||
], function ($router) {
|
||||
require __DIR__.'/../routes/web.php';
|
||||
require __DIR__ . '/../routes/web.php';
|
||||
});
|
||||
|
||||
return $app;
|
||||
|
||||
+11
-5
@@ -6,13 +6,16 @@
|
||||
"type": "project",
|
||||
"require": {
|
||||
"php": ">=7.1.3",
|
||||
"laravel/lumen-framework": "5.7.*",
|
||||
"vlucas/phpdotenv": "~2.2"
|
||||
"dusterio/lumen-passport": "^0.2.15",
|
||||
"guzzlehttp/guzzle": "^6.5",
|
||||
"laravel/lumen-framework": "5.8.*",
|
||||
"lcobucci/jwt": "3.3.3",
|
||||
"vlucas/phpdotenv": "^3.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"fzaninotto/faker": "~1.4",
|
||||
"phpunit/phpunit": "~7.0",
|
||||
"mockery/mockery": "~1.0"
|
||||
"mockery/mockery": "~1.0",
|
||||
"phpunit/phpunit": "~7.0"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
@@ -36,7 +39,10 @@
|
||||
"config": {
|
||||
"preferred-install": "dist",
|
||||
"sort-packages": true,
|
||||
"optimize-autoloader": true
|
||||
"optimize-autoloader": true,
|
||||
"allow-plugins": {
|
||||
"kylekatarnls/update-helper": true
|
||||
}
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true
|
||||
|
||||
Reference in New Issue
Block a user