El patron de desarrollo que usaremos para esta API se conoce como ADR ( Action-Domain-Response ), les dejo una lectura en este link https://odan.github.io/slim4-skeleton/architecture.html https://en.wikipedia.org/wiki/Action%E2%80%93domain%E2%80%93responder
-En la carpeta 'src/Domain' creamos una carpeta con el nombre del Dominio -Crear una Interface/Repositorio en el folder 'src/Domain/' -Crear un Modelo en la carpeta 'src/Infrastructure/Persistence' -Crear las Actions en la carpeta 'src/Application/Actions' -Mapear un repositorio a un modelo en el archivo 'app.repositories.php' -Crear las rutas en el archivo 'app.routes.php'
-
Crear una class 'EntidadAction'
-
Crear el
-
Create a 'repository name' folder in the path 'src/Domain/' folder
-
Whithin the created folder, create a 'repository name' file
-
Create a 'repository name' file the path 'src/Intrastructure/Persistence'
-
Create a Folder in the path 'src/Intrastructure/Persistence'
-
Create a file with the
- Fork the Repository
- Create a new branch for each feature or improvement
- Send a pull request from each feature branch to the 4.x branch
It is very important to separate new features or improvements into separate feature branches, and to send a pull request for each branch. This allows us to review and pull in new features or improvements individually.
All pull requests must adhere to the PSR-2 standard.