Skip to content

Commit

Permalink
Implement changes on 5.x to 4.x
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Mar 29, 2020
1 parent 885b1cd commit b5870d7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions skeleton/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
$app->register(Laravel\Lumen\Providers\FoundationServiceProvider::class);
$app->register(Dingo\Api\Provider\LumenServiceProvider::class);
// $app->register(Tymon\JWTAuth\Providers\LumenServiceProvider::class);
// $app->register(App\Lumen\Providers\AppServiceProvider::class);
// $app->register(App\Lumen\Providers\AuthServiceProvider::class);
// $app->register(App\Lumen\Providers\EventServiceProvider::class);
$app->register(App\Lumen\Providers\AppServiceProvider::class);
$app->register(App\Lumen\Providers\AuthServiceProvider::class);
$app->register(App\Lumen\Providers\EventServiceProvider::class);

/*
|--------------------------------------------------------------------------
Expand All @@ -96,7 +96,7 @@
|
*/

$app->get('/', function () use ($app) {
$app->router->get('/', function () use ($app) {
return $app->version();
});

Expand Down
2 changes: 1 addition & 1 deletion skeleton/config/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
|
*/

'transformer' => env('API_TRANSFORMER', Dingo\Api\Transformer\Adapter\Fractal::class),
'transformer' => env('API_TRANSFORMER', Dingo\Api\Transformer\Adapter\Illuminate::class),

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions src/Testing/Concerns/Testing.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ final protected function setUpTheTestEnvironment()
{
if (! $this->app) {
$this->refreshApplication();

$this->app->make(ConsoleKernel::class);
}

$this->setUpTraits();
Expand Down
2 changes: 2 additions & 0 deletions src/Testing/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ protected function refreshApplication()

$this->app = $this->createApplication();

$this->app->make(ConsoleKernel::class);

$url = $this->app->make('config')->get('app.url', 'http://localhost');

$this->app->make('url')->forceRootUrl($url);
Expand Down

0 comments on commit b5870d7

Please sign in to comment.