Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Commit

Permalink
Merge branch 'release/0.7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
bramdevries committed Jan 2, 2017
2 parents 5a6f6f2 + d67a72b commit c6acd38
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,28 @@ Madewithlove\LaravelCqrsEs\ServiceProvider::class
This package ships with some code generators to easily create commands, command handlers and events. To enable generators you have to add `Madewithlove\LaravelCqrEs\Generators\ServiceProvider::class`
to your `app.providers` array. However, we advise you to not enable this service provider on production environments.

All of our generators besides `generate:aggreate` require an `--aggregate` option that is used to generate the proper namespace and directories.
All of our generators besides `make:cqrs:aggreate` require an `--aggregate` option that is used to make:cqrs the proper namespace and directories.

#### `generate:command`
#### `make:cqrs:command`

```bash
php artisan generate:command SayHello --aggregate World
php artisan make:cqrs:command SayHello --aggregate World
# app/World/Commands/SayHello.php
# app/World/CommandHandlers/SayHello.php
# tests/World/CommandHandlers/SayHelloTest.php
```

#### `generate:event`
#### `make:cqrs:event`

```bash
php artisan generate:event SaidHello --aggregate World
php artisan make:cqrs:event SaidHello --aggregate World
# app/World/Events/SaidHello.php
```

#### `generate:aggregate`
#### `make:cqrs:aggregate`

```bash
php artisan generate:aggregate World
php artisan make:cqrs:aggregate World
# app/WorldAggregates/World.php
# app/WorldAggregates/Repositories/WriteRepository.php
# app/WorldAggregates/Repositories/DbalWriteRepository.php
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"require": {
"php": ">=5.6.0",
"doctrine/dbal": "^2.5",
"broadway/broadway": "^0.9",
"broadway/broadway": "^0.10",
"illuminate/console": "^5.1",
"illuminate/database": "^5.1",
"illuminate/events": "^5.1",
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/Console/AbstractGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ protected function getOptions()
*/
protected function callCommandFile($type, $options = [])
{
$this->call('generate:file', array_merge([
$this->call('make:cqrs:file', array_merge([
'name' => $this->getNameInput(),
'--type' => $type,
'--aggregate' => $this->option('aggregate'),
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/Console/Aggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Aggregate extends AbstractGeneratorCommand
/**
* @var string
*/
protected $name = 'generate:aggregate';
protected $name = 'make:cqrs:aggregate';

/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/Console/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Command extends AbstractGeneratorCommand
/**
* @var string
*/
protected $name = 'generate:command';
protected $name = 'make:cqrs:command';

/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/Console/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Event extends AbstractGeneratorCommand
/**
* @var string
*/
protected $name = 'generate:event';
protected $name = 'make:cqrs:event';

/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/Console/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class File extends AbstractGeneratorCommand
/**
* @var string
*/
protected $name = 'generate:file';
protected $name = 'make:cqrs:file';

/**
* @var string
Expand Down

0 comments on commit c6acd38

Please sign in to comment.