mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 01:41:36 +00:00
45 lines
983 B
PHP
45 lines
983 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Helpers\FTP;
|
|
use App\Helpers\Notifier;
|
|
use App\Helpers\SSH;
|
|
use App\Helpers\Toast;
|
|
use Illuminate\Contracts\Container\BindingResolutionException;
|
|
use Illuminate\Http\Resources\Json\ResourceCollection;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* @throws BindingResolutionException
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
ResourceCollection::withoutWrapping();
|
|
|
|
// facades
|
|
$this->app->bind('ssh', function () {
|
|
return new SSH;
|
|
});
|
|
$this->app->bind('notifier', function () {
|
|
return new Notifier;
|
|
});
|
|
$this->app->bind('toast', function () {
|
|
return new Toast;
|
|
});
|
|
$this->app->bind('ftp', function () {
|
|
return new FTP;
|
|
});
|
|
}
|
|
}
|