X

Create New Item

File Folder

X

Search Results

File "TermwindServiceProvider.php"

Full path: /home/orbitecv/orbite-school.orbit.et/vendor/nunomaduro/termwind/src/Laravel/TermwindServiceProvider.php
File size: 480 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?php

declare(strict_types=1);

namespace Termwind\Laravel;

use Illuminate\Console\OutputStyle;
use Illuminate\Support\ServiceProvider;
use Termwind\Termwind;

final class TermwindServiceProvider extends ServiceProvider
{
    /**
     * Sets the correct renderer to be used.
     */
    public function register(): void
    {
        $this->app->resolving(OutputStyle::class, function ($style): void {
            Termwind::renderUsing($style->getOutput());
        });
    }
}