Use the ::class notation

This commit is contained in:
Pantelis Peslis 2015-06-08 10:29:33 +03:00
parent bacda07552
commit 16e37cb370
5 changed files with 10 additions and 10 deletions

View File

@ -28,7 +28,7 @@ $app = require_once __DIR__.'/bootstrap/app.php';
| |
*/ */
$kernel = $app->make('Illuminate\Contracts\Console\Kernel'); $kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$status = $kernel->handle( $status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput, $input = new Symfony\Component\Console\Input\ArgvInput,

View File

@ -27,18 +27,18 @@ $app = new Illuminate\Foundation\Application(
*/ */
$app->singleton( $app->singleton(
'Illuminate\Contracts\Http\Kernel', Illuminate\Contracts\Http\Kernel::class,
'App\Http\Kernel' App\Http\Kernel::class
); );
$app->singleton( $app->singleton(
'Illuminate\Contracts\Console\Kernel', Illuminate\Contracts\Console\Kernel::class,
'App\Console\Kernel' App\Console\Kernel::class
); );
$app->singleton( $app->singleton(
'Illuminate\Contracts\Debug\ExceptionHandler', Illuminate\Contracts\Debug\ExceptionHandler::class,
'App\Exceptions\Handler' App\Exceptions\Handler::class
); );
/* /*

View File

@ -11,7 +11,7 @@
| |
*/ */
$factory->define('App\User', function ($faker) { $factory->define(App\User::class, function ($faker) {
return [ return [
'name' => $faker->name, 'name' => $faker->name,
'email' => $faker->email, 'email' => $faker->email,

View File

@ -47,7 +47,7 @@ $app = require_once __DIR__.'/../bootstrap/app.php';
| |
*/ */
$kernel = $app->make('Illuminate\Contracts\Http\Kernel'); $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle( $response = $kernel->handle(
$request = Illuminate\Http\Request::capture() $request = Illuminate\Http\Request::capture()

View File

@ -18,7 +18,7 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
{ {
$app = require __DIR__.'/../bootstrap/app.php'; $app = require __DIR__.'/../bootstrap/app.php';
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap(); $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
return $app; return $app;
} }