php-ddd-example icon indicating copy to clipboard operation
php-ddd-example copied to clipboard

Finder application services has different behaviours. Why?

Open palgalik opened this issue 3 years ago • 0 comments

Why course and video application services behave differently in Mooc context?

CourseFinder (\CodelyTv\Mooc\Courses\Application\Find\CourseFinder) has the dependencyCourseRepository , and the class invoke method uses it directly.

On the other hand, VideoFinder (\CodelyTv\Mooc\Videos\Application\Find\VideoFinder) application service instantiates a domain finder (\CodelyTv\Mooc\Videos\Domain\VideoFinder), passing the repository as argument.

Can you explain the what's the intention behind it?

palgalik avatar Jul 05 '22 14:07 palgalik