for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sonar\Valiable;
use Illuminate\Support\ServiceProvider;
class ValiableServiceProvider extends ServiceProvider
{
protected $commands = [
'Sonar\Valiable\Console\ValiableImportCommand',
'Sonar\Valiable\Console\ValiableListCommand',
'Sonar\Valiable\Console\ValiableClearCommand',
];
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
$this->publishes([
__DIR__ . '/../storage/app/sonar_valiables' => storage_path('app/sonar_valiables'),
]);
}
* Register any package services.
public function register()
$this->commands($this->commands);
$this->registerValiableBuilder();
protected function registerValiableBuilder()
$this->app->singleton('sonar_valiable',function($app) {
return new Valiable($app['cache']);
});
public function provides()
return ['sonar_valiable'];