Refatoring : Working state
This commit is contained in:
@@ -11,6 +11,12 @@ use App\Shared\Exception\NotFoundException;
|
||||
use App\Shared\Html\HtmlSanitizerInterface;
|
||||
use App\Shared\Pagination\PaginatedResult;
|
||||
|
||||
/**
|
||||
* Service applicatif du domaine Post.
|
||||
*
|
||||
* Orchestre la lecture, la recherche et la persistance des articles, ainsi que
|
||||
* la sanitisation HTML et la génération de slugs uniques.
|
||||
*/
|
||||
class PostApplicationService implements PostServiceInterface
|
||||
{
|
||||
public function __construct(
|
||||
|
||||
@@ -3,6 +3,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Post;
|
||||
|
||||
/**
|
||||
* Contrat de persistance du domaine Post.
|
||||
*/
|
||||
interface PostRepositoryInterface
|
||||
{
|
||||
/** @return Post[] */
|
||||
|
||||
@@ -6,6 +6,9 @@ namespace App\Post;
|
||||
use App\Shared\Exception\NotFoundException;
|
||||
use App\Shared\Pagination\PaginatedResult;
|
||||
|
||||
/**
|
||||
* Contrat applicatif du domaine Post.
|
||||
*/
|
||||
interface PostServiceInterface
|
||||
{
|
||||
/** @return Post[] */
|
||||
|
||||
Reference in New Issue
Block a user