public function __construct(CommandSerializerInterface $serializer) { $this->serializer = $serializer; }