Last active
November 17, 2015 07:11
-
-
Save cod3beat/9ce8e9825a2c2660483e to your computer and use it in GitHub Desktop.
SimpleBus
This file contains hidden or 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 ChallengeController | |
{ | |
public function store() | |
{ | |
try { | |
$this->commandBus()->handle(new CreateUnpublishedChallenge( | |
'Nama', | |
'Ringkasan', | |
'Deskripsi', | |
1000, | |
10 | |
)); | |
} catch (Exception $e) { | |
// ... | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment