mirror of
https://gitlab.com/izyim/prototypes/ddd-example.git
synced 2026-08-21 05:24:19 +00:00
Add common domain and presentation layer
1. domain exception 2. create domain command
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user