From 4ba352ebf6a04913db0f08db2bd52de107ab7386 Mon Sep 17 00:00:00 2001 From: Davis Peixoto Date: Tue, 8 Apr 2014 23:57:51 -0300 Subject: [PATCH] attempt to make it work on a fresh install --- .../LaravelSalesforce/Facades/Salesforce.php | 2 +- .../LaravelSalesforceServiceProvider.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Davispeixoto/LaravelSalesforce/Facades/Salesforce.php b/src/Davispeixoto/LaravelSalesforce/Facades/Salesforce.php index 3d6c68f..471c3b2 100644 --- a/src/Davispeixoto/LaravelSalesforce/Facades/Salesforce.php +++ b/src/Davispeixoto/LaravelSalesforce/Facades/Salesforce.php @@ -9,6 +9,6 @@ class Salesforce extends Facade { * @return string */ protected static function getFacadeAccessor() { - return 'salesforce'; + return 'laravel-salesforce'; } } \ No newline at end of file diff --git a/src/Davispeixoto/LaravelSalesforce/LaravelSalesforceServiceProvider.php b/src/Davispeixoto/LaravelSalesforce/LaravelSalesforceServiceProvider.php index 3922425..7a9ea84 100644 --- a/src/Davispeixoto/LaravelSalesforce/LaravelSalesforceServiceProvider.php +++ b/src/Davispeixoto/LaravelSalesforce/LaravelSalesforceServiceProvider.php @@ -28,15 +28,15 @@ public function boot() */ public function register() { + $this->app['laravel-salesforce'] = $this->app->share(function($app) { + return new Salesforce($app['config']); + }); + $this->app->booting(function() { $loader = \Illuminate\Foundation\AliasLoader::getInstance(); $loader->alias('Salesforce', 'Davispeixoto\LaravelSalesforce\Facades\Salesforce'); $loader->alias('SF', 'Davispeixoto\LaravelSalesforce\Facades\Salesforce'); }); - - $this->app['salesforce'] = $this->app->share(function($app) { - return new Salesforce($app['config']); - }); } /** @@ -46,7 +46,7 @@ public function register() */ public function provides() { - return array('salesforce'); + return array('laravel-salesforce'); } }