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 defined('SYSPATH') OR die('No direct access allowed.'); | |
/** | |
* Mongo Auth driver. Adapted from Kohana_Auth_ORM. | |
*/ | |
class Auth_Mongo extends Auth { | |
/** | |
* Checks if a session is active. | |
* | |
* @param string role name |
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
#!/bin/sh | |
# have submodules been added? | |
MODS=0 | |
# Github base URL | |
GITHUB="https://github.com" | |
# Default branch | |
DEFAULT_BRANCH="3.0/master" |
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
app.config(function($provide) { | |
$provide.decorator('ytPlaytoDirective', function($delegate) { | |
var directive = $delegate[0]; | |
directive.template = '<h5>{{ title }}, {{ viewCount }}</h5>'; | |
return $delegate; | |
}); | |
}); |
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; |
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 | |
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\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
#!/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 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
version: "3.7" | |
services: | |
drupal: | |
depends_on: | |
- db | |
build: ./app | |
restart: unless-stopped | |
volumes: | |
- code:/app # mount the mutagen volume | |
environment: |
OlderNewer