You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
Service contracts allow depending modules to depend on the interface of the redirect model and it's respective repository instead of its concrete implementation.
Interfaces can also be used in classes owned by the module itself to keep a clean and more readable codebase by using the repository interface instead of a factory or collection for example to load one or more redirect models directly.
Service contracts allow depending modules to depend on the interface of the redirect model and it's respective repository instead of its concrete implementation.
Service contract design patterns | Magento 2 Developer Documentation
Interfaces can also be used in classes owned by the module itself to keep a clean and more readable codebase by using the repository interface instead of a factory or collection for example to load one or more redirect models directly.
Suggested interfaces
WeProvide\NginxRedirect\Api\Data\RedirectInterface
WeProvide\NginxRedirect\Api\RedirectRepositoryInterface
The text was updated successfully, but these errors were encountered: