Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Use ::class
Browse files Browse the repository at this point in the history
  • Loading branch information
FaZeRs committed May 11, 2018
1 parent f6a7b60 commit 232629b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php

use Illuminate\Cookie\CookieServiceProvider;
use Illuminate\Mail\MailServiceProvider;

require_once __DIR__.'/../vendor/autoload.php';

try {
Expand All @@ -20,7 +23,7 @@
*/

$app = new Laravel\Lumen\Application(
realpath(__DIR__.'/../')
dirname(__DIR__).'/'
);

require_once __DIR__.'/helpers.php';
Expand Down Expand Up @@ -61,7 +64,7 @@
);

$app->singleton('mailer', function ($app) {
return $app->loadComponent('mail', 'Illuminate\Mail\MailServiceProvider', 'mailer');
return $app->loadComponent('mail', MailServiceProvider::class, 'mailer');
});
$app->alias('mailer', Illuminate\Contracts\Mail\Mailer::class);

Expand All @@ -70,7 +73,7 @@
});

$app->singleton('cookie', function () use ($app) {
return $app->loadComponent('session', 'Illuminate\Cookie\CookieServiceProvider', 'cookie');
return $app->loadComponent('session', CookieServiceProvider::class, 'cookie');
});

$app->bind(\Illuminate\Contracts\Cookie\QueueingFactory::class, 'cookie');
Expand Down

0 comments on commit 232629b

Please sign in to comment.