Use injection here. Blah, can't decide.

This commit is contained in:
Taylor Otwell
2014-08-28 15:00:43 +02:00
parent c9ea1cbf03
commit 45f0b4f9d9
2 changed files with 12 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
<?php namespace App\Providers;
use Log;
use Illuminate\Contracts\Logging\Log;
use Illuminate\Support\ServiceProvider;
class LogServiceProvider extends ServiceProvider {
@@ -8,11 +8,12 @@ class LogServiceProvider extends ServiceProvider {
/**
* Configure the application's logging facilities.
*
* @param Log $log
* @return void
*/
public function boot()
public function boot(Log $log)
{
Log::useFiles(storage_path().'/logs/laravel.log');
$log->useFiles(storage_path().'/logs/laravel.log');
}
/**