Skip to content

Instantly share code, notes, and snippets.

@antonmedv
Last active January 11, 2018 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonmedv/46fd262dfd9aeaa42f6c61409bf93353 to your computer and use it in GitHub Desktop.
Save antonmedv/46fd262dfd9aeaa42f6c61409bf93353 to your computer and use it in GitHub Desktop.
<?php declare(strict_types=1);
$app->get('/prices', [
ParseParams::class,
NormalizeParams::class,
delayed() => Notify::class,
parallel() => [
ServiceA::class,
SomeOtherService::class,
ServiceB::class,
serial() => [
ServicePrepareC::class,
ServiceC::class,
]
],
MergeResults::class,
Sync::class,
Response::class,
]);
<?php declare(strict_types=1);
// ¯\_(ツ)_/¯
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment