diff --git a/README.md b/README.md index 0cd35f9..15958d2 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Begin by installing this package through Composer. Edit your project's `composer "require": { "laravel/framework": "4.1.*", - "davispeixoto/laravel-salesforce": "1.0.*" + "davispeixoto/laravel-salesforce": "1.0.11" } Next, update Composer from the Terminal: diff --git a/composer.json b/composer.json index c2e7b59..6144a12 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "require": { "php": ">=5.3.0", "illuminate/support": "4.1.*", - "davispeixoto/force-dot-com-toolkit-for-php": "1.0.2" + "davispeixoto/force-dot-com-toolkit-for-php": "1.0.3" }, "autoload": { "psr-0": { diff --git a/src/Davispeixoto/LaravelSalesforce/Facades/Salesforce.php b/src/Davispeixoto/LaravelSalesforce/Facades/Salesforce.php index 471c3b2..3d6c68f 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 'laravel-salesforce'; + return 'salesforce'; } } \ No newline at end of file diff --git a/src/Davispeixoto/LaravelSalesforce/LaravelSalesforceServiceProvider.php b/src/Davispeixoto/LaravelSalesforce/LaravelSalesforceServiceProvider.php index 7a9ea84..1a18c43 100644 --- a/src/Davispeixoto/LaravelSalesforce/LaravelSalesforceServiceProvider.php +++ b/src/Davispeixoto/LaravelSalesforce/LaravelSalesforceServiceProvider.php @@ -9,7 +9,7 @@ class LaravelSalesforceServiceProvider extends ServiceProvider { * * @var bool */ - protected $defer = true; + protected $defer = false; /** * Bootstrap the application events. @@ -27,16 +27,16 @@ public function boot() * @return void */ 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('laravel-salesforce'); + return array('salesforce'); } }