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

* use case to can publish a video using an infra element.

Open gonzalogcontacto opened this issue 4 years ago โ€ข 0 comments

Implementing simple use case of video domain at the application layer to practice Hexagonal Architecture.

Basically I added new one Use Case at src/Application/Video/Share with CoursePublisher class, where i inject a Contract interface based (ShareRepository) following the SOLID patterns.

Finally I add dependency injection to my ShareRepository with an TwitterShareRepository like real implementation to share the video domain using external dependency at infrastructure layer.

Sorry if it is not correct! Im super beginner at this kind of architectures ๐Ÿ˜…

Iยดll appreciate any suggestion to improve and to can get merged finally to codelyTv Repo. ๐Ÿ™๐Ÿป

gonzalogcontacto avatar Feb 24 '21 18:02 gonzalogcontacto