32 lines
604 B
PHP
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');
|
|
|
|
}
|
|
|
|
}
|