diff src/Generator/Generator.php @ 7:769a17898cc0

Various changes to the generators and replacers - probably mostly just formatting
author luka
date Wed, 18 Oct 2023 21:04:11 -0400
parents b0b2e79ad8e6
children 7ee152c22478
line wrap: on
line diff
--- a/src/Generator/Generator.php	Thu Oct 12 19:44:22 2023 -0400
+++ b/src/Generator/Generator.php	Wed Oct 18 21:04:11 2023 -0400
@@ -2,15 +2,10 @@
 
 namespace Wizzard\MagicForger\Generator;
 
-use DB;
-
 use Symfony\Component\Console\Attribute\AsCommand;
 use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Input\InputOption;
 use Symfony\Component\Console\Output\OutputInterface;
-use Illuminate\Support\Str;
-
-use Wizzard\MagicForger\Generator\BaseGenerator;
 
 #[AsCommand(name: 'mf')]
 class Generator extends BaseGenerator
@@ -29,13 +24,11 @@
      */
     protected $description = 'Generates any (or all) of the available files.';
 
-
     /**
      * Execute the console command.
      */
     public function handle()
     {
-
         // First we need to ensure that the table exists, then we can
         if (!$this->tableExists($this->getTableInput())) {
             $this->components->error('The table: "'.$this->getTableInput().'" does not exist in the database.');
@@ -43,8 +36,8 @@
             return false;
         }
 
-				$this->setCurrentTable($this->getTableInput());
-				dd($this->getCurrentTable()->getForeignKeys());
+        /* $this->setCurrentTable($this->getTableInput()); */
+        /* dd($this->getCurrentTable()->getForeignKeys()); */
 
         if ($this->option('all')) {
             /* $this->input->setOption('factory', true); */
@@ -83,7 +76,6 @@
         if ($this->option('route')) {
             $this->createRoute();
         }
-
     }
 
     /**