Skip to content

Instantly share code, notes, and snippets.

@ismail1432
Created October 2, 2022 12:15
Show Gist options
  • Save ismail1432/821405e6c5f16a8a0436e2e9509932fa to your computer and use it in GitHub Desktop.
Save ismail1432/821405e6c5f16a8a0436e2e9509932fa to your computer and use it in GitHub Desktop.
<?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