Skip to content
This repository has been archived by the owner on Apr 7, 2019. It is now read-only.

Commit

Permalink
Fixed service provider
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Oct 6, 2015
1 parent 17bb25c commit 75ce4b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/EmojiServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Exception;
use GuzzleHttp\Client;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use League\CommonMark\Environment;

Expand All @@ -31,17 +32,19 @@ class EmojiServiceProvider extends ServiceProvider
*/
public function register()
{
$this->setupConfig();
$this->setupConfig($this->app);
$this->registerEmojiParser();
$this->registerEnvironment();
}

/**
* Setup the config.
*
* @param \Illuminate\Contracts\Foundation\Application $app
*
* @return void
*/
protected function setupConfig()
protected function setupConfig(Application $app)
{
$source = realpath(__DIR__.'/../config/emoji.php');

Expand Down

0 comments on commit 75ce4b4

Please # to comment.