Skip to content

Commit

Permalink
#5 fix service provider bug
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Nov 22, 2014
1 parent a68548e commit f320ad8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Pinyin/PinyinServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php namespace Overtrue\Pinyin;

use Config;

use Illuminate\Support\ServiceProvider;

/**
* Pinyin Service Provider for Laravel
* Pinyin Service Provider for Laravel 4
*/
class PinyinServiceProvider extends ServiceProvider {

Expand All @@ -14,8 +16,8 @@ class PinyinServiceProvider extends ServiceProvider {
*/
public function register()
{
$config = config('pinyin');
$config = Config::get('pinyin');

Pinyin::settings($config);
}
}
}

0 comments on commit f320ad8

Please sign in to comment.