Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Jan 1, 2025
1 parent d4eaa10 commit 04b993c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions src/Commands/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@

namespace Orchestra\Canvas\Core\Commands;

use Illuminate\Filesystem\Filesystem;
use Illuminate\Console\GeneratorCommand as Command;
use Orchestra\Canvas\Core\Concerns;
use Orchestra\Canvas\Core\Contracts\GeneratesCode;

/**
* @property string|null $name
* @property string|null $description
*/
abstract class GeneratorCommand extends \Illuminate\Console\GeneratorCommand implements GeneratesCode
abstract class GeneratorCommand extends Command implements GeneratesCode
{
use Concerns\CodeGenerator;
use Concerns\TestGenerator;
use Concerns\UsesGeneratorOverrides;

/** {@inheritDoc} */
public function __construct(Filesystem $files)
#[\Override]
protected function configure()
{
parent::__construct($files);
parent::configure();

$this->addGeneratorPresetOptions();
}
Expand Down
9 changes: 5 additions & 4 deletions src/Commands/MigrationGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@

namespace Orchestra\Canvas\Core\Commands;

use Illuminate\Filesystem\Filesystem;
use Illuminate\Console\MigrationGeneratorCommand as Command;
use Orchestra\Canvas\Core\Concerns\MigrationGenerator;

/**
* @property string|null $name
* @property string|null $description
*/
abstract class MigrationGeneratorCommand extends \Illuminate\Console\MigrationGeneratorCommand
abstract class MigrationGeneratorCommand extends Command
{
use MigrationGenerator;

/** {@inheritDoc} */
public function __construct(Filesystem $files)
#[\Override]
protected function configure()
{
parent::__construct($files);
parent::configure();

$this->addGeneratorPresetOptions();
}
Expand Down

0 comments on commit 04b993c

Please sign in to comment.