Slide 11
Slide 11 text
public function __invoke(
FulltextRequest $request
): RedirectResponse {
// ొॲཧޙʹevent
try {
$entity = new Entity(1, ‘testing’);
$this->dispatcher->dispatch(
new SinkConnect($this->usecase->run($entity))
);
} catch(\RuntimeException $e) {
// Կ͔errorॲཧ
}
return $this->redirector->route('fulltext.index');
}