1 | <?php |
||
9 | class CreateCleaner extends Command |
||
10 | { |
||
11 | use AppNamespaceDetectorTrait; |
||
12 | |||
13 | /** |
||
14 | * The name and signature of the console command. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $signature = 'laundromat:create {name}'; |
||
19 | |||
20 | /** |
||
21 | * The console command description. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $description = 'Create a new cleaner class.'; |
||
26 | |||
27 | /** |
||
28 | * Execute the console command. |
||
29 | * |
||
30 | * @return mixed |
||
31 | */ |
||
32 | public function handle() |
||
52 | |||
53 | /** |
||
54 | * Create Cleaners directory if it doesn't exist. |
||
55 | */ |
||
56 | protected function createDirectory() |
||
64 | |||
65 | /** |
||
66 | * Write the property bag file into the settings folder. |
||
67 | * |
||
68 | * @param string $namespace |
||
69 | */ |
||
70 | protected function writeCleaner($name, $namespace) |
||
82 | } |
||
83 |