for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jenky\Hermes;
use Illuminate\Support\ServiceProvider;
use Jenky\Hermes\Contracts\Hermes;
class HermesServiceProvider extends ServiceProvider
{
/**
* Bootstrap any package services.
*
* @return void
*/
public function boot()
$this->registerPublishing();
}
* Register any package services.
public function register()
$this->mergeConfigFrom(
__DIR__.'/../config/hermes.php', 'hermes'
);
$this->app->singleton(Hermes::class, function ($app) {
return new GuzzleManager($app);
});
$this->app->alias(Hermes::class, 'hermes');
* Register the package's publishable resources.
protected function registerPublishing()
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../config/hermes.php' => config_path('hermes.php'),
], 'hermes-config');