for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Syntax\SteamApi;
use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;
class SteamApiServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
* Bootstrap the application events.
* @return void
public function boot()
{
$this->package('syntax/steam-api');
}
* Register the service provider.
public function register()
$this->registerAlias();
$this->app['steam-api'] = $this->app->share(function()
return new Client;
});
* Register the alias for package.
protected function registerAlias()
$this->app->booting(function()
$loader = AliasLoader::getInstance();
$loader->alias('Steam', 'Syntax\SteamApi\Facades\SteamApi');
* Get the services provided by the provider.
* @return string[]
public function provides()
return array('steam-api');