move into sonardesk
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Developer\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Modules\Developer\Console\Commands\InspectModulesCommand;
|
||||
use Modules\Developer\Console\Commands\MakeCrudCommand;
|
||||
use Modules\Developer\Console\Commands\MakeModuleCommand;
|
||||
use Modules\Developer\Console\Commands\MakeThemeCommand;
|
||||
|
||||
final class DeveloperServiceProvider extends ServiceProvider
|
||||
{
|
||||
public function register(): void
|
||||
{
|
||||
$this->app->register(RouteServiceProvider::class);
|
||||
$this->mergeConfigFrom(module_path('Developer', 'Config/config.php'), 'developer');
|
||||
}
|
||||
|
||||
public function boot(): void
|
||||
{
|
||||
$this->loadViewsFrom(module_path('Developer', 'Resources/views'), 'developer');
|
||||
|
||||
if ($this->app->runningInConsole()) {
|
||||
$this->commands([
|
||||
MakeModuleCommand::class,
|
||||
MakeCrudCommand::class,
|
||||
MakeThemeCommand::class,
|
||||
InspectModulesCommand::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user