Skip to content

Commit

Permalink
Rename feature to Flavour
Browse files Browse the repository at this point in the history
  • Loading branch information
codeliner committed Nov 12, 2018
1 parent 58c68cb commit 7e2655e
Show file tree
Hide file tree
Showing 53 changed files with 307 additions and 231 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace ProophExample\CustomMessages\Aggregate;
namespace ProophExample\FunctionalFlavour\Aggregate;

final class Aggregate
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@

declare(strict_types=1);

namespace ProophExample\CustomMessages\Aggregate;
namespace ProophExample\FunctionalFlavour\Aggregate;

use Prooph\EventMachine\EventMachine;
use Prooph\EventMachine\EventMachineDescription;
use ProophExample\CustomMessages\Api\Command;
use ProophExample\CustomMessages\Api\Event;
use ProophExample\CustomMessages\Command\ChangeUsername;
use ProophExample\CustomMessages\Command\RegisterUser;
use ProophExample\CustomMessages\Event\UsernameChanged;
use ProophExample\CustomMessages\Event\UserRegistered;
use ProophExample\FunctionalFlavour\Api\Command;
use ProophExample\FunctionalFlavour\Api\Event;
use ProophExample\FunctionalFlavour\Command\ChangeUsername;
use ProophExample\FunctionalFlavour\Command\RegisterUser;
use ProophExample\FunctionalFlavour\Event\UsernameChanged;
use ProophExample\FunctionalFlavour\Event\UserRegistered;

/**
* Class UserDescription
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

declare(strict_types=1);

namespace ProophExample\CustomMessages\Aggregate;
namespace ProophExample\FunctionalFlavour\Aggregate;

use ProophExample\CustomMessages\Util\ApplyPayload;
use ProophExample\FunctionalFlavour\Util\ApplyPayload;

class UserState
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

declare(strict_types=1);

namespace ProophExample\CustomMessages\Api;
namespace ProophExample\FunctionalFlavour\Api;

use ProophExample\CustomMessages\Command\ChangeUsername;
use ProophExample\CustomMessages\Command\RegisterUser;
use ProophExample\FunctionalFlavour\Command\ChangeUsername;
use ProophExample\FunctionalFlavour\Command\RegisterUser;

final class Command
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

declare(strict_types=1);

namespace ProophExample\CustomMessages\Api;
namespace ProophExample\FunctionalFlavour\Api;

use ProophExample\CustomMessages\Event\UsernameChanged;
use ProophExample\CustomMessages\Event\UserRegistered;
use ProophExample\FunctionalFlavour\Event\UsernameChanged;
use ProophExample\FunctionalFlavour\Event\UserRegistered;

final class Event
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@

declare(strict_types=1);

namespace ProophExample\CustomMessages\Api;
namespace ProophExample\FunctionalFlavour\Api;

use Prooph\EventMachine\EventMachine;
use Prooph\EventMachine\EventMachineDescription;
use Prooph\EventMachine\JsonSchema\JsonSchema;
use Prooph\EventMachine\JsonSchema\Type\EmailType;
use Prooph\EventMachine\JsonSchema\Type\StringType;
use Prooph\EventMachine\JsonSchema\Type\UuidType;
use ProophExample\Standard\Aggregate\UserDescription;
use ProophExample\Standard\Resolver\GetUserResolver;
use ProophExample\Standard\Resolver\GetUsersResolver;
use ProophExample\PrototypingFlavour\Aggregate\UserDescription;
use ProophExample\PrototypingFlavour\Resolver\GetUserResolver;
use ProophExample\PrototypingFlavour\Resolver\GetUsersResolver;

/**
* You're free to organize EventMachineDescriptions in the way that best fits your personal preferences
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace ProophExample\CustomMessages\Api;
namespace ProophExample\FunctionalFlavour\Api;

final class Query
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

declare(strict_types=1);

namespace ProophExample\CustomMessages\Command;
namespace ProophExample\FunctionalFlavour\Command;

use ProophExample\CustomMessages\Util\ApplyPayload;
use ProophExample\FunctionalFlavour\Util\ApplyPayload;

final class ChangeUsername
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

declare(strict_types=1);

namespace ProophExample\CustomMessages\Command;
namespace ProophExample\FunctionalFlavour\Command;

use ProophExample\CustomMessages\Util\ApplyPayload;
use ProophExample\FunctionalFlavour\Util\ApplyPayload;

final class RegisterUser
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

declare(strict_types=1);

namespace ProophExample\CustomMessages\Event;
namespace ProophExample\FunctionalFlavour\Event;

use ProophExample\CustomMessages\Util\ApplyPayload;
use ProophExample\FunctionalFlavour\Util\ApplyPayload;

final class UserRegistered
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

declare(strict_types=1);

namespace ProophExample\CustomMessages\Event;
namespace ProophExample\FunctionalFlavour\Event;

use ProophExample\CustomMessages\Util\ApplyPayload;
use ProophExample\FunctionalFlavour\Util\ApplyPayload;

final class UsernameChanged
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

declare(strict_types=1);

namespace ProophExample\CustomMessages;
namespace ProophExample\FunctionalFlavour;

use Prooph\EventMachine\Messaging\Message;
use Prooph\EventMachine\Messaging\MessageBag;
use Prooph\EventMachine\Runtime\CustomMessage\Port;
use ProophExample\CustomMessages\Api\Command;
use ProophExample\CustomMessages\Api\Event;
use Prooph\EventMachine\Runtime\Functional\Port;
use ProophExample\FunctionalFlavour\Api\Command;
use ProophExample\FunctionalFlavour\Api\Event;

final class ExampleCustomMessagePort implements Port
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace ProophExample\CustomMessages\Util;
namespace ProophExample\FunctionalFlavour\Util;

trait ApplyPayload
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

declare(strict_types=1);

namespace ProophExample\OOPStyle\Aggregate;
namespace ProophExample\OopFlavour\Aggregate;

use Prooph\EventMachine\Exception\RuntimeException;
use ProophExample\CustomMessages\Command\ChangeUsername;
use ProophExample\CustomMessages\Command\RegisterUser;
use ProophExample\CustomMessages\Event\UsernameChanged;
use ProophExample\CustomMessages\Event\UserRegistered;
use ProophExample\FunctionalFlavour\Command\ChangeUsername;
use ProophExample\FunctionalFlavour\Command\RegisterUser;
use ProophExample\FunctionalFlavour\Event\UsernameChanged;
use ProophExample\FunctionalFlavour\Event\UserRegistered;

final class User
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

declare(strict_types=1);

namespace ProophExample\OOPStyle\Aggregate;
namespace ProophExample\OopFlavour\Aggregate;

use Prooph\EventMachine\EventMachine;
use Prooph\EventMachine\EventMachineDescription;
use Prooph\EventMachine\Runtime\OOP\InterceptorHint;
use ProophExample\CustomMessages\Api\Command;
use ProophExample\CustomMessages\Api\Event;
use Prooph\EventMachine\Runtime\Oop\InterceptorHint;
use ProophExample\FunctionalFlavour\Api\Command;
use ProophExample\FunctionalFlavour\Api\Event;

/**
* Class UserDescription
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

declare(strict_types=1);

namespace ProophExample\OOPStyle;
namespace ProophExample\OopFlavour;

use Prooph\EventMachine\Exception\InvalidArgumentException;
use Prooph\EventMachine\Runtime\OOP\Port;
use Prooph\EventMachine\Runtime\Oop\Port;
use Prooph\EventMachine\Util\DetermineVariableType;
use ProophExample\CustomMessages\Command\ChangeUsername;
use ProophExample\OOPStyle\Aggregate\User;
use ProophExample\FunctionalFlavour\Command\ChangeUsername;
use ProophExample\OopFlavour\Aggregate\User;

final class ExampleOOPPort implements Port
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace ProophExample\Standard\Aggregate;
namespace ProophExample\PrototypingFlavour\Aggregate;

final class Aggregate
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

declare(strict_types=1);

namespace ProophExample\Standard\Aggregate;
namespace ProophExample\PrototypingFlavour\Aggregate;

use Prooph\Common\Messaging\Message;
use ProophExample\Standard\Messaging\Event;
use ProophExample\PrototypingFlavour\Messaging\Event;

final class CachableUserFunction
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

declare(strict_types=1);

namespace ProophExample\Standard\Aggregate;
namespace ProophExample\PrototypingFlavour\Aggregate;

use Prooph\EventMachine\EventMachine;
use ProophExample\Standard\Messaging\Command;
use ProophExample\Standard\Messaging\Event;
use ProophExample\PrototypingFlavour\Messaging\Command;
use ProophExample\PrototypingFlavour\Messaging\Event;

/**
* Class CacheableUserDescription
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

declare(strict_types=1);

namespace ProophExample\Standard\Aggregate;
namespace ProophExample\PrototypingFlavour\Aggregate;

use Prooph\Common\Messaging\Message;
use Prooph\EventMachine\EventMachine;
use Prooph\EventMachine\EventMachineDescription;
use ProophExample\Standard\Messaging\Command;
use ProophExample\Standard\Messaging\Event;
use ProophExample\PrototypingFlavour\Messaging\Command;
use ProophExample\PrototypingFlavour\Messaging\Event;

/**
* Class UserDescription
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace ProophExample\Standard\Aggregate;
namespace ProophExample\PrototypingFlavour\Aggregate;

class UserState
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace ProophExample\Standard\Messaging;
namespace ProophExample\PrototypingFlavour\Messaging;

final class Command
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace ProophExample\Standard\Messaging;
namespace ProophExample\PrototypingFlavour\Messaging;

final class Event
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@

declare(strict_types=1);

namespace ProophExample\Standard\Messaging;
namespace ProophExample\PrototypingFlavour\Messaging;

use Prooph\EventMachine\EventMachine;
use Prooph\EventMachine\EventMachineDescription;
use Prooph\EventMachine\JsonSchema\JsonSchema;
use Prooph\EventMachine\JsonSchema\Type\EmailType;
use Prooph\EventMachine\JsonSchema\Type\StringType;
use Prooph\EventMachine\JsonSchema\Type\UuidType;
use ProophExample\Standard\Aggregate\UserDescription;
use ProophExample\Standard\Resolver\GetUserResolver;
use ProophExample\Standard\Resolver\GetUsersResolver;
use ProophExample\PrototypingFlavour\Aggregate\UserDescription;
use ProophExample\PrototypingFlavour\Resolver\GetUserResolver;
use ProophExample\PrototypingFlavour\Resolver\GetUsersResolver;

/**
* You're free to organize EventMachineDescriptions in the way that best fits your personal preferences
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace ProophExample\Standard\Messaging;
namespace ProophExample\PrototypingFlavour\Messaging;

final class Query
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

declare(strict_types=1);

namespace ProophExample\Standard\Resolver;
namespace ProophExample\PrototypingFlavour\Resolver;

use Prooph\Common\Messaging\Message;
use Prooph\EventMachine\EventMachine;
use ProophExample\Standard\Aggregate\Aggregate;
use ProophExample\PrototypingFlavour\Aggregate\Aggregate;
use React\Promise\Deferred;

final class GetUserResolver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

namespace ProophExample\Standard\Resolver;
namespace ProophExample\PrototypingFlavour\Resolver;

use Prooph\Common\Messaging\Message;
use React\Promise\Deferred;
Expand Down
Loading

0 comments on commit 7e2655e

Please sign in to comment.