The preview command class.
Create a new instance of PreviewCommand.
The service container to manage dependencies.
Handle the incoming event.
The incoming event.
The preview command class.