Files
pingan_new/packages/sinopec/src/ServiceProvider.php
2020-10-09 09:54:33 +08:00

32 lines
604 B
PHP

<?php
namespace XuanChen\Sinopec;
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
class ServiceProvider extends LaravelServiceProvider
{
/**
* Register services.
* @return void
*/
public function register()
{
if ($this->app->runningInConsole()) {
$this->publishes([__DIR__ . '/../config/sinopec.php' => config_path('sinopec.php')]);
}
}
/**
* Bootstrap services.
* @return void
*/
public function boot()
{
$this->mergeConfigFrom(__DIR__ . '/../config/sinopec.php', 'sinopec');
}
}