Created
October 2, 2022 12:15
-
-
Save ismail1432/821405e6c5f16a8a0436e2e9509932fa 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 | |
use App\Bus; | |
class HelloController extends AbstractController | |
{ | |
#[Route('/hello', name: 'app_hello')] | |
public function hello(Bus $bus): Response | |
{ | |
$bus->dispatch(new MyMessage()); | |
return $this->render('hello/index.html.twig', [ | |
'value' => 'Hello', | |
]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment