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
/** | |
* @throws AdressApiDown | |
*/ | |
public function validate($value, Constraint $constraint): void | |
{ | |
try { | |
if ($someService->checkValue($value)) { | |
$this->context | |
->buildViolation($constraint->message) | |
->addViolation(); |
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 frolvlad/alpine-python3 | |
RUN apk add --update make gcc git python3-dev musl-dev libffi-dev openssl-dev py-pip | |
RUN pip install -r requirements.txt | |
COPY . /app | |
WORKDIR /app | |
ENTRYPOINT pytest config-test/ -s --env= | |
// Run with | |
// docker run <container> $TEST_ENV |
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
Verifying that "nicholasruunu.id" is my Blockstack ID. https://onename.com/nicholasruunu |
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 | |
namespace AppBundle\Api\Filter; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\AbstractFilter; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface; | |
use Doctrine\ORM\QueryBuilder; | |
/** | |
* NullFilter for api-platform |
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
module Main exposing (..) | |
import Html exposing (..) | |
import Html.App as App | |
import Html.Attributes exposing (..) | |
import Json.Decode as Json exposing ((:=)) | |
import Task | |
import Http | |
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 | |
declare(strict_types=1); | |
abstract class EventFactory | |
{ | |
public function apply() | |
} |
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 | |
namespace Purist\Message; | |
use InvalidArgumentException; | |
use Psr\Http\Message\MessageInterface; | |
use Psr\Http\Message\StreamInterface; | |
final class HttpMessage implements MessageInterface | |
{ |
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 | |
final class MonthNumber | |
{ | |
private $number; | |
public function __construct(int $number) | |
{ | |
$this->number = $number; | |
} |
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 | |
trait DomainEventProxy | |
{ | |
private $eventMethodMapping = []; | |
private function callMappedMethod(DomainEvent $event, ...$arguments) | |
{ | |
$method = $this->resolveMethod($event); | |
$this->$method($event, ...$arguments); |
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
final class User | |
{ | |
private $password; | |
public function changePassword($string) | |
{ | |
$this->password = new Password($string); | |
} | |
} |
NewerOlder