Embrace contracts.

This commit is contained in:
Taylor Otwell
2014-09-18 19:35:08 -05:00
parent 7c8b8e7dba
commit 4e5a151774
3 changed files with 16 additions and 11 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 {
@@ -10,9 +10,9 @@ class LogServiceProvider extends ServiceProvider {
*
* @return void
*/
public function boot()
public function boot(Log $log)
{
Log::useFiles(storage_path().'/logs/laravel.log');
$log->useFiles(storage_path().'/logs/laravel.log');
}
/**