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 Sep 28, 2023
1 parent 39b7937 commit 2ae4333
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 516 deletions.
7 changes: 1 addition & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"require-dev": {
"fakerphp/faker": "^1.21",
"laravel/framework": "^10.17",
"laravel/framework": "dev-generator-presets as 10.x-dev",
"laravel/pint": "^1.6",
"mockery/mockery": "^1.5.1",
"orchestra/testbench-core": "^8.11",
Expand All @@ -57,11 +57,6 @@
"extra": {
"branch-alias": {
"dev-master": "9.0-dev"
},
"laravel": {
"providers": [
"Orchestra\\Canvas\\Core\\LaravelServiceProvider"
]
}
},
"scripts": {
Expand Down
29 changes: 1 addition & 28 deletions src/Commands/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,15 @@

use Illuminate\Filesystem\Filesystem;
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 \Illuminate\Console\GeneratorCommand
{
use Concerns\CodeGenerator;
use Concerns\TestGenerator;
use Concerns\UsesGeneratorOverrides;

/**
* Create a new controller creator command instance.
*
* @return void
*/
public function __construct(Filesystem $files)
{
parent::__construct($files);

$this->addGeneratorPresetOptions();
}

/**
* Execute the console command.
*
* @return bool|null
*
* @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
*/
public function handle()
{
return $this->generateCode() ? self::SUCCESS : self::FAILURE;
}

/**
* Get the destination class path.
*
Expand Down
29 changes: 0 additions & 29 deletions src/LaravelServiceProvider.php

This file was deleted.

44 changes: 0 additions & 44 deletions src/PresetManager.php

This file was deleted.

178 changes: 0 additions & 178 deletions src/Presets/Laravel.php

This file was deleted.

Loading

0 comments on commit 2ae4333

Please sign in to comment.