Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
getprooph.org sample snippet
<?php
declare(strict_types=1);
class CargoRouteListener extends ProcessManager
{
function listenOn(DestiniationWasChanged $event)
{
$rerouteCargo = RerouteCargo::to(
$event->newDestination(),
$event->cargoId()
);
$this->commandBus->dispatch($rerouteCargo);
}
}
@gitomato

This comment has been minimized.

Copy link

commented Jun 28, 2017

Be careful, you wrote "Destiniation" instead of "Destination" :)

@diimpp

This comment has been minimized.

Copy link

commented Oct 18, 2017

Shouldn't it be

function listenOn(DestinationWasChanged $event): void

?

/cc @codeliner

@enricobono

This comment has been minimized.

Copy link

commented Nov 20, 2018

Destiniation anywhere :)

@BenMorel

This comment has been minimized.

Copy link

commented Apr 27, 2019

And because gist comments and mentions don't trigger notifications, @codeliner will never be aware of the typo :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.