Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
namespace CodelyTv\Api\Controller;
use CodelyTv\Context\Meetup\Module\Video\Domain\Create\CreateVideoCommand;
use CodelyTv\Infrastructure\Bus\Command\CommandBus;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
final class VideoController extends Controller
private $bus;
public function __construct(CommandBus $bus)
$this->bus = $bus;
public function createAction(string $id, Request $request)
$command = new CreateVideoCommand(
return new Response('', Response::HTTP_CREATED);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment