-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQueryBuilderServiceProvider.php
More file actions
37 lines (30 loc) · 904 Bytes
/
QueryBuilderServiceProvider.php
File metadata and controls
37 lines (30 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
declare(strict_types=1);
namespace WayOfDev\QueryBuilder\Bridge\Laravel\Providers;
use Illuminate\Support\ServiceProvider;
final class QueryBuilderServiceProvider extends ServiceProvider
{
public function boot(): void
{
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__ . '/../../../../config/query-builder.php' => config_path('query-builder.php'),
], 'config');
$this->registerConsoleCommands();
}
}
public function register(): void
{
// @phpstan-ignore-next-line
if (! $this->app->configurationIsCached()) {
$this->mergeConfigFrom(
__DIR__ . '/../../../../config/query-builder.php',
'query-builder'
);
}
}
private function registerConsoleCommands(): void
{
$this->commands([]);
}
}