for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PWWEB\Artomator\Commands\Common;
use InfyOm\Generator\Commands\Common\RepositoryGeneratorCommand as Base;
use PWWEB\Artomator\Common\CommandData;
use PWWEB\Artomator\Generators\InterfaceGenerator;
use PWWEB\Artomator\Generators\RepositoryGenerator;
class RepositoryGeneratorCommand extends Base
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'artomator:repository';
* Create a new command instance.
public function __construct()
parent::__construct();
$this->commandData = new CommandData($this, CommandData::$COMMAND_TYPE_API);
}
* Execute the command.
* @return void
public function handle()
parent::handle();
$repositoryGenerator = new RepositoryGenerator($this->commandData);
$repositoryGenerator->generate();
$interfaceGenerator = new InterfaceGenerator($this->commandData);
$interfaceGenerator->generate();
$this->performPostActions();