Beispiel #1
0
 /**
  * Creates the command entity
  *
  * @return void
  * @author Dan Cox
  */
 public function createCommandEntity()
 {
     $command = new Command();
     $command->name = $this->input->getArgument('name');
     $command->file = 'commands/' . $this->input->getArgument('name') . '.yml';
     $command->createdAt = new \DateTime('NOW');
     $command->updatedAt = new \DateTime('NOW');
     $command->save();
 }