Skip to content

Commit 3198f19

Browse files
authored
Refactor: Move domain classes to Contracts directory (#3)
1 parent 79a96e5 commit 3198f19

File tree

18 files changed

+30
-30
lines changed

18 files changed

+30
-30
lines changed

src/Application/Command/Command.php renamed to src/Application/Contracts/Command/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace ComplexHeart\Application\Command;
5+
namespace ComplexHeart\Application\Contracts\Command;
66

77
/**
88
* Interface Command

src/Application/Command/CommandBus.php renamed to src/Application/Contracts/Command/CommandBus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace ComplexHeart\Application\Command;
5+
namespace ComplexHeart\Application\Contracts\Command;
66

77
/**
88
* Interface CommandBus

src/Application/Handler/CommandHandler.php renamed to src/Application/Contracts/Handler/CommandHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace ComplexHeart\Application\Handler;
5+
namespace ComplexHeart\Application\Contracts\Handler;
66

7-
use ComplexHeart\Application\Command\Command;
7+
use ComplexHeart\Application\Contracts\Command\Command;
88

99
/**
1010
* Interface CommandHandler

src/Application/Handler/EventHandler.php renamed to src/Application/Contracts/Handler/EventHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace ComplexHeart\Application\Handler;
5+
namespace ComplexHeart\Application\Contracts\Handler;
66

7-
use ComplexHeart\Domain\Events\Event;
7+
use ComplexHeart\Domain\Contracts\Events\Event;
88

99
/**
1010
* Interface EventHandler

src/Application/Handler/QueryHandler.php renamed to src/Application/Contracts/Handler/QueryHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
declare(strict_types=1);
44

5-
namespace ComplexHeart\Application\Handler;
5+
namespace ComplexHeart\Application\Contracts\Handler;
66

7-
use ComplexHeart\Application\Query\Query;
8-
use ComplexHeart\Application\Query\QueryResponse;
7+
use ComplexHeart\Application\Contracts\Query\Query;
8+
use ComplexHeart\Application\Contracts\Query\QueryResponse;
99

1010
/**
1111
* Interface QueryHandler

src/Application/Query/Query.php renamed to src/Application/Contracts/Query/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace ComplexHeart\Application\Query;
5+
namespace ComplexHeart\Application\Contracts\Query;
66

77
/**
88
* Interface Query

src/Application/Query/QueryBus.php renamed to src/Application/Contracts/Query/QueryBus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace ComplexHeart\Application\Query;
5+
namespace ComplexHeart\Application\Contracts\Query;
66

77
/**
88
* Interface QueryBus

src/Application/Query/QueryResponse.php renamed to src/Application/Contracts/Query/QueryResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace ComplexHeart\Application\Query;
5+
namespace ComplexHeart\Application\Contracts\Query;
66

77
/**
88
* Interface QueryResponse

src/Application/ServiceBus.php renamed to src/Application/Contracts/ServiceBus.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace ComplexHeart\Application;
5+
namespace ComplexHeart\Application\Contracts;
66

7-
use ComplexHeart\Application\Command\CommandBus;
8-
use ComplexHeart\Application\Query\QueryBus;
9-
use ComplexHeart\Domain\Events\EventBus;
7+
use ComplexHeart\Application\Contracts\Command\CommandBus;
8+
use ComplexHeart\Application\Contracts\Query\QueryBus;
9+
use ComplexHeart\Domain\Contracts\Events\EventBus;
1010

1111
/**
1212
* Interface ServiceBus

src/Domain/Events/Event.php renamed to src/Domain/Contracts/Events/Event.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace ComplexHeart\Domain\Events;
5+
namespace ComplexHeart\Domain\Contracts\Events;
66

77
/**
88
* Interface Event

0 commit comments

Comments
 (0)