<?php

namespace Wizzard\MagicForger;

use Illuminate\Support\ServiceProvider;
use Wizzard\MagicForger\Generator\Generator;
use Wizzard\MagicForger\Generator\Controller\ControllerGenerator;
use Wizzard\MagicForger\Generator\Model\ModelGenerator;

class MagicForgerServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any package services.
     */
    public function boot(): void
    {
        if ($this->app->runningInConsole()) {
            $this->commands([
                Generator::class,
                ControllerGenerator::class,
                ModelGenerator::class,
            ]);
        }
    }
}
