Permalink
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (48 sloc) 1.33 KB
<?php
namespace JeroenG\Packager;
use Illuminate\Support\ServiceProvider;
/**
* This is the service provider.
*
* Place the line below in the providers array inside app/config/app.php
* <code>'JeroenG\Packager\PackagerServiceProvider',</code>
*
* @author JeroenG
**/
class PackagerServiceProvider extends ServiceProvider
{
/**
* The console commands.
*
* @var bool
*/
protected $commands = [
'JeroenG\Packager\Commands\NewPackage',
'JeroenG\Packager\Commands\RemovePackage',
'JeroenG\Packager\Commands\GetPackage',
'JeroenG\Packager\Commands\GitPackage',
'JeroenG\Packager\Commands\ListPackages',
'JeroenG\Packager\Commands\MoveTests',
'JeroenG\Packager\Commands\CheckPackage',
'JeroenG\Packager\Commands\PublishPackage',
'JeroenG\Packager\Commands\EnablePackage',
'JeroenG\Packager\Commands\DisablePackage',
];
/**
* Bootstrap the application events.
*/
public function boot()
{
$this->publishes([
__DIR__.'/../config/packager.php' => config_path('packager.php'),
]);
}
/**
* Register the command.
*/
public function register()
{
$this->mergeConfigFrom(__DIR__.'/../config/packager.php', 'packager');
$this->commands($this->commands);
}
}