-
-
Save meDavid/9ea29a81305950d333cdc37ebd6acc17 to your computer and use it in GitHub Desktop.
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 ConfirmEmailController extends Controller { | |
.... | |
public function confirmEmailAction($id, $hash) { | |
$form = $this->applicationRepository->findByHash($id, $hash); | |
try { | |
$this->workflow->apply($form, 'confirm_application'); | |
} catch(LogicException $e) { | |
// Cannot apply transition, probably already confirmed | |
} | |
.... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment