Add common domain and presentation layer

1. domain exception
2. create domain command
This commit is contained in:
omair saleh
2022-09-25 14:40:42 +08:00
parent 8ab5154130
commit 97bfbdaf1e
9 changed files with 173 additions and 0 deletions
@@ -0,0 +1,11 @@
<?php
namespace Src\Common\Domain\Exceptions;
final class UnauthorizedUserException extends \Exception
{
public function __construct()
{
parent::__construct('The user is not authorized to access this resource');
}
}