php-ddd-example
php-ddd-example copied to clipboard
Finder application services has different behaviours. Why?
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?