This file contains 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 | |
/** | |
* This file is an example gist to show the interaction between an ArticleContext and a LikeContext | |
* | |
* @example: | |
* | |
* We have to bounded contexts: ArticleContext and LikeContext and show the simplified process of following use case: | |
* | |
* In order to create a valid article Like, I should validate the article ID given to the LikeContext. | |
* |
This file contains 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 | |
namespace Application\Form\Element; | |
use Application\Form\Element\ObjectSelect\Proxy; | |
use DoctrineModule\Form\Element\ObjectSelect as DoctrineObjectSelect; | |
/** | |
* Class ObjectSelect | |
* | |
* Extends doctrines ObjectSelect to provide own Proxy implementation |
This file contains 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 | |
/* | |
* This example illustrates modelling the following use cases: | |
* | |
* - A user can write and publish an article, with the title, description.etc. | |
* - X users can then respond to said article by posting comments, | |
* - and responding to one another. | |
* - it is very common for an Article to be 'locked' when it becomes older. | |
* | |
* Note: The example is an incomplete draft. |
This file contains 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 | |
declare(strict_types = 1); | |
namespace Acme\Infrastructure\MongoDb; | |
use MongoDB\Client; | |
use MongoDB\Collection; | |
class MongoConnection |
This file contains 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 | |
declare(strict_types = 1); | |
namespace Acme\Model; | |
use Prooph\Common\Messaging\DomainMessage; | |
use Prooph\Common\Messaging\Message as ProophMessage; | |
class Message extends DomainMessage | |
{ |
This file contains 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 | |
declare(strict_types=1); | |
class CargoRouteListener extends ProcessManager | |
{ | |
function listenOn(DestiniationWasChanged $event) | |
{ | |
$rerouteCargo = RerouteCargo::to( | |
$event->newDestination(), | |
$event->cargoId() |
This file contains 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
{ | |
"variables": [], | |
"info": { | |
"name": "EventMachine Example", | |
"_postman_id": "89698ba0-98f0-cc94-2f71-9f19c183e3f3", | |
"description": "", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ |
This file contains 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 from 'react' | |
interface ReactTestProps {foo: string, bar: string} | |
class ReactTest extends React.Component<ReactTestProps, {}> { | |
constructor(props: ReactTestProps) { | |
super(props) | |
} | |
} |
OlderNewer