33 lines
555 B
PHP
33 lines
555 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Bootstrappers;
|
|
|
|
use Pest\Contracts\Bootstrapper;
|
|
use Pest\Support\View;
|
|
use Symfony\Component\Console\Output\OutputInterface;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final readonly class BootView implements Bootstrapper
|
|
{
|
|
/**
|
|
* Creates a new instance of the Boot View.
|
|
*/
|
|
public function __construct(
|
|
private OutputInterface $output
|
|
) {
|
|
// ..
|
|
}
|
|
|
|
/**
|
|
* Boots the view renderer.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
View::renderUsing($this->output);
|
|
}
|
|
}
|