Upgrade framework
This commit is contained in:
68
vendor/laravel/sail/src/SailServiceProvider.php
vendored
Normal file
68
vendor/laravel/sail/src/SailServiceProvider.php
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
namespace Laravel\Sail;
|
||||
|
||||
use Illuminate\Contracts\Support\DeferrableProvider;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Laravel\Sail\Console\InstallCommand;
|
||||
use Laravel\Sail\Console\PublishCommand;
|
||||
|
||||
class SailServiceProvider extends ServiceProvider implements DeferrableProvider
|
||||
{
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->registerCommands();
|
||||
$this->configurePublishing();
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the console commands for the package.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function registerCommands()
|
||||
{
|
||||
if ($this->app->runningInConsole()) {
|
||||
$this->commands([
|
||||
InstallCommand::class,
|
||||
PublishCommand::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure publishing for the package.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function configurePublishing()
|
||||
{
|
||||
if ($this->app->runningInConsole()) {
|
||||
$this->publishes([
|
||||
__DIR__ . '/../runtimes' => $this->app->basePath('docker'),
|
||||
], ['sail', 'sail-docker']);
|
||||
|
||||
$this->publishes([
|
||||
__DIR__ . '/../bin/sail' => $this->app->basePath('sail'),
|
||||
], ['sail', 'sail-bin']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the services provided by the provider.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function provides()
|
||||
{
|
||||
return [
|
||||
InstallCommand::class,
|
||||
PublishCommand::class,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user