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
FROM php:7.4-apache | |
# persistent dependencies | |
RUN set -eux; \ | |
apt-get update; \ | |
apt-get install -y --no-install-recommends \ | |
# Ghostscript is required for rendering PDF previews | |
ghostscript \ | |
; \ | |
rm -rf /var/lib/apt/lists/* |
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
version: "3.7" | |
services: | |
drupal: | |
depends_on: | |
- db | |
build: ./app | |
restart: unless-stopped | |
volumes: | |
- code:/app # mount the mutagen volume | |
environment: |
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 App\Command; | |
use Prooph\Bundle\EventStore\Projection\ReadModelProjection; | |
use Prooph\EventStore\Projection\ProjectionManager; | |
use Prooph\EventStore\Projection\ReadModel; | |
use Prooph\EventStore\Projection\ReadModelProjector; |
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
#!/usr/bin/env bash | |
for package in `composer outdated | awk '{ print $1":"$4 }'`; | |
do | |
echo "New version: $package" > outdated-status.txt | |
composer why-not $package > outdated-status.txt | |
echo "----------" > outdated-status.txt | |
done | |
if [ -z $(git status --porcelain) ]; |
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 Funct\Ion\Common\Library\Cqrs\ServiceBus; | |
use JsonSerializable; | |
use Prooph\Common\Messaging\Message; | |
final class IdentityCausationData implements JsonSerializable |
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 | |
class LockService | |
{ | |
public function tryAcquireLocationLock( | |
LocationLock $lock, | |
IdInterface $owner, | |
?DateTimeImmutable $expirationDate | |
): bool { | |
try { |
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 Funct\Ion\Microsite\Base\ReadModel\MicrositeCollections; | |
use Prooph\EventStore\Projection\AbstractReadModel; | |
use RuntimeException; | |
final class CombinedReadModel extends AbstractReadModel |
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
#if (${TYPE_HINT} == "mixed") | |
/** | |
* @return ${TYPE_HINT} | |
*/ | |
#end | |
public ${STATIC} function ${FIELD_NAME}()#if(${RETURN_TYPE}): ${RETURN_TYPE}#end | |
{ | |
#if (${STATIC} == "static") | |
return self::$${FIELD_NAME}; | |
#else |
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 Prooph\ServiceBus\Plugin; | |
use Prooph\Common\Event\ActionEvent; | |
use Prooph\ServiceBus\CommandBus; | |
use Prooph\ServiceBus\EventBus; | |
use Prooph\ServiceBus\MessageBus; |
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\Middleware; | |
use Interop\Http\ServerMiddleware\DelegateInterface; | |
use Interop\Http\ServerMiddleware\MiddlewareInterface; | |
use Prooph\Common\Messaging\MessageFactory; | |
use Prooph\Psr7Middleware\MetadataGatherer; |
NewerOlder