Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #25 from lucid-architecture/5.5
Browse files Browse the repository at this point in the history
5.5
  • Loading branch information
Mulkave authored Oct 31, 2017
2 parents 7b7e1f7 + 17ee84b commit 03e0e0c
Show file tree
Hide file tree
Showing 23 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function execute(InputInterface $input, OutputInterface $output)
$this->input = $input;
$this->output = $output;

return (int) $this->fire();
return (int) $this->handle();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/ChangeSourceNamespaceCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __construct()
/**
* Execute the console command.
*/
public function fire()
public function handle()
{
try {
$this->setAppDirectoryNamespace();
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/ControllerMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ControllerMakeCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
$generator = new ControllerGenerator();

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/FeatureDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class FeatureDeleteCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
try {
$service = Str::service($this->argument('service'));
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/FeatureDescribeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class FeatureDescribeCommand extends Command
*
* @return bool|null
*/
public function fire()
public function handle()
{
if ($feature = $this->findFeature($this->argument('feature'))) {
$parser = new Parser();
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/FeatureMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class FeatureMakeCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
try {
$service = studly_case($this->argument('service'));
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/FeaturesListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class FeaturesListCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
foreach ($this->listFeatures($this->argument('service')) as $service => $features) {
$this->comment("\n$service\n");
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/JobDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class JobDeleteCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
try {
$domain = studly_case($this->argument('domain'));
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/JobMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class JobMakeCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
$generator = new JobGenerator();

Expand Down
4 changes: 2 additions & 2 deletions src/Commands/ModelDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ModelDeleteCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
try {
$model = $this->parseModelName($this->argument('model'));
Expand Down Expand Up @@ -98,4 +98,4 @@ public function parseModelName($name)
{
return Str::model($name);
}
}
}
4 changes: 2 additions & 2 deletions src/Commands/ModelMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ModelMakeCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
$generator = new ModelGenerator();

Expand Down Expand Up @@ -89,4 +89,4 @@ public function getStub()
{
return __DIR__ . '/../Generators/stubs/model.stub';
}
}
}
2 changes: 1 addition & 1 deletion src/Commands/OperationDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class OperationDeleteCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
try {
$service = Str::service($this->argument('service'));
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/OperationMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class OperationMakeCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
$generator = new OperationGenerator();

Expand Down
4 changes: 2 additions & 2 deletions src/Commands/PolicyDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PolicyDeleteCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
try {
$policy = $this->parsePolicyName($this->argument('policy'));
Expand Down Expand Up @@ -98,4 +98,4 @@ public function parsePolicyName($name)
{
return Str::policy($name);
}
}
}
4 changes: 2 additions & 2 deletions src/Commands/PolicyMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PolicyMakeCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
$generator = new PolicyGenerator();

Expand Down Expand Up @@ -89,4 +89,4 @@ public function getStub()
{
return __DIR__ . '/../Generators/stubs/policy.stub';
}
}
}
4 changes: 2 additions & 2 deletions src/Commands/RequestDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class RequestDeleteCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
try {
$request = $this->parseRequestName($this->argument('request'));
Expand Down Expand Up @@ -100,4 +100,4 @@ public function parseRequestName($name)
{
return Str::request($name);
}
}
}
4 changes: 2 additions & 2 deletions src/Commands/RequestMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class RequestMakeCommand extends SymfonyCommand
*
* @return bool|null
*/
public function fire()
public function handle()
{
$generator = new RequestGenerator();

Expand Down Expand Up @@ -91,4 +91,4 @@ public function getStub()
{
return __DIR__ . '/../Generators/stubs/request.stub';
}
}
}
2 changes: 1 addition & 1 deletion src/Commands/ServiceDeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function getStub()
*
* @return bool|null
*/
public function fire()
public function handle()
{
if ($this->isMicroservice()) {
return $this->error('This functionality is disabled in a Microservice');
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/ServiceMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function getStub()
*
* @return bool|null
*/
public function fire()
public function handle()
{
try {
$name = $this->argument('name');
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/ServicesListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ServicesListCommand extends SymfonyCommand
*/
protected $description = 'List the services in this project.';

public function fire()
public function handle()
{
$services = $this->listServices()->all();

Expand Down
2 changes: 1 addition & 1 deletion src/Generators/stubs/feature-test.stub
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace {{namespace}};

use TestCase;
use Tests\TestCase;
use {{feature_namespace}};

class {{testclass}} extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/stubs/job-test.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace {{namespace}};

use {{job_namespace}};
use PHPUnit_Framework_TestCase as TestCase;
use Tests\TestCase;

class {{testclass}} extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/stubs/operation-test.stub
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace {{namespace}};

use TestCase;
use Tests\TestCase;
use {{operation_namespace}};

class {{testclass}} extends TestCase
Expand Down

0 comments on commit 03e0e0c

Please sign in to comment.