-
Anemic Domain Model vs Rich Domain Model with Examples
https://thevaluable.dev/anemic-domain-model/ -
Symfony: services and Rich Domain Models
https://stackoverflow.com/questions/58091042/symfony-services-and-rich-domain-models -
How to use Repository with Doctrine as Service in Symfony
https://tomasvotruba.com/blog/2017/10/16/how-to-use-repository-with-doctrine-as-service-in-symfony/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:16.04 | |
| LABEL maintainer="Mauricio Rodrigues <mmauricio.vsr@gmail.com>" | |
| RUN echo "----> Upgrading repository" && \ | |
| apt-get update -y && \ | |
| apt-get upgrade -y && \ | |
| apt-get upgrade -y && \ | |
| apt-get install -y apt-transport-https \ | |
| curl \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package support; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import support.Entity; | |
| /** | |
| * A generic storage. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "Package Name", | |
| "version": "0.1.0", | |
| "description": "Package description", | |
| "main": "index.js", | |
| "scripts": { | |
| "dev": "webpack --mode development --watch --info-verbosity verbose --progress", | |
| "prod": "npm run production", | |
| "production": "webpack --mode production", | |
| "test": "echo \"Error: no test specified\" && exit 1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Removendo postagens de Bolsonaro 🤮 da sua timeline. | |
| * Siga as instruções a seguir e seja feliz. ❤️ | |
| * | |
| * 1. Abra o seu navegador | |
| * 2. Acesse o inspetor de elementos (CTRL+I ou CMD+I) | |
| * 3. Acesse a aba "Console" | |
| * 4. Cole o código abaixo e pressione enter. | |
| * | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import InputSize from './InputSize'; | |
| class Input extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| inputValue: '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //... | |
| class DbCouponRepository implements CouponRepositoryInterface | |
| { | |
| /** | |
| * @const int | |
| */ | |
| const PAGE_SIZE = 25; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //... | |
| class FetchAllCouponsMethodObject | |
| { | |
| /** | |
| * @var null|string | |
| */ | |
| private $filterableKeyword; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //... | |
| interface CouponRepositoryInterface | |
| { | |
| /** | |
| * Get all coupons. | |
| * | |
| * @param null $filterableKeyword |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // ... | |
| class DbCouponRepository implements CouponRepositoryInterface | |
| { | |
| /** | |
| * @const int | |
| */ | |
| const PAGE_SIZE = 25; |