Commit c10ad626 authored by Taylor Otwell's avatar Taylor Otwell

Remove log service provider since it is part of Bootstrap process.

parent 9aed9deb
...@@ -5,23 +5,23 @@ use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvi ...@@ -5,23 +5,23 @@ use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvi
class EventServiceProvider extends ServiceProvider { class EventServiceProvider extends ServiceProvider {
/** /**
* The event handler mappings for the application. * The classes to scan for event annotations.
* *
* @var array * @var array
*/ */
protected $listen = [ protected $scan = [
'event.name' => [ //
'EventListener',
],
]; ];
/** /**
* The classes to scan for event annotations. * The event handler mappings for the application.
* *
* @var array * @var array
*/ */
protected $scan = [ protected $listen = [
// 'event.name' => [
'EventListener',
],
]; ];
} }
<?php namespace App\Providers;
use Illuminate\Contracts\Logging\Log;
use Illuminate\Support\ServiceProvider;
class LogServiceProvider extends ServiceProvider {
/**
* Configure the application's logging facilities.
*
* @param Log $log
* @return void
*/
public function boot(Log $log)
{
$log->useFiles(storage_path().'/laravel.log');
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
//
}
}
...@@ -99,7 +99,6 @@ return [ ...@@ -99,7 +99,6 @@ return [
* Application Service Providers... * Application Service Providers...
*/ */
'App\Providers\EventServiceProvider', 'App\Providers\EventServiceProvider',
'App\Providers\LogServiceProvider',
'App\Providers\RouteServiceProvider', 'App\Providers\RouteServiceProvider',
/* /*
......
...@@ -16,7 +16,6 @@ return [ ...@@ -16,7 +16,6 @@ return [
'files' => [ 'files' => [
__DIR__.'/../app/Providers/EventServiceProvider.php', __DIR__.'/../app/Providers/EventServiceProvider.php',
__DIR__.'/../app/Providers/LogServiceProvider.php',
__DIR__.'/../app/Providers/RouteServiceProvider.php', __DIR__.'/../app/Providers/RouteServiceProvider.php',
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment