Skip to content

Commit

Permalink
attempt to make it work on a fresh install
Browse files Browse the repository at this point in the history
  • Loading branch information
davispeixoto committed Apr 9, 2014
1 parent 37b5d6e commit 4ba352e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Davispeixoto/LaravelSalesforce/Facades/Salesforce.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class Salesforce extends Facade {
* @return string
*/
protected static function getFacadeAccessor() {
return 'salesforce';
return 'laravel-salesforce';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
});
}

/**
Expand All @@ -46,7 +46,7 @@ public function register()
*/
public function provides()
{
return array('salesforce');
return array('laravel-salesforce');
}

}
Expand Down

0 comments on commit 4ba352e

Please sign in to comment.