/** * Handle the command. * * @param StreamSchema $schema */ public function handle(StreamSchema $schema, StreamRepositoryInterface $streams) { /* @var StreamInterface $stream */ $stream = $streams->find($this->stream->getId()); $schema->renameTable($stream, $this->stream); if ($stream->isTranslatable()) { $schema->renameTranslationsTable($stream, $this->stream); } }