Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Commit

Permalink
Remove configPath as a prop in service provider for support on php5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
percymamedy committed May 27, 2016
1 parent e386200 commit 3e60699
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/WatsonTranslateServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@
*/
class WatsonTranslateServiceProvider extends ServiceProvider
{
/**
* Define the config path we are using for the Package
*
* @var string
*/
protected $configPath = __DIR__.'/config/watson-translate.php';

/**
* Define all Facades here
*
Expand All @@ -40,7 +33,7 @@ public function boot()
{
//Publish config file
$this->publishes([
$this->configPath => config_path('watson-translate.php')
__DIR__.'/config/watson-translate.php' => config_path('watson-translate.php')
], 'config');
}

Expand All @@ -52,7 +45,7 @@ public function boot()
public function register()
{
//Merge config file
$this->mergeConfigFrom($this->configPath, 'watson-translate');
$this->mergeConfigFrom(__DIR__.'/config/watson-translate.php', 'watson-translate');
//Register Bindings
$this->registerBinding();
//Add Facades to the Translator service
Expand Down

0 comments on commit 3e60699

Please sign in to comment.