Skip to content

Commit

Permalink
adding global alias for Fence
Browse files Browse the repository at this point in the history
  • Loading branch information
metallurgical committed Jan 24, 2017
1 parent 3c6014e commit 5098776
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Repositories/ServiceProvider/ArchServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ public function register()
// register all the artisan commands
$this->registerCommand('Repositories', 'repo');
$this->registerCommand('Canal', 'canal');
/*
* Register the service provider for the dependency.
*/
$this->app->register( 'Arch\Repositories\ServiceProvider\ArchServiceProvider' );
/*
* Create aliases for the dependency.
*/
$loader = \Illuminate\Foundation\AliasLoader::getInstance();
$loader->alias( 'Fence', 'Arch\Repositories\Tools\Libraries\Encryption' );

}
/**
Expand Down

0 comments on commit 5098776

Please sign in to comment.