/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Console/View/Components/Alert.php
28 строк
710 B
Nuno Maduro
[9.x] Introducing a fresh new look for Artisan (#43065)
14 июл 2022, 17:38
Не верифицирован
14 июл 2022, 17:38
a105ae5
Код
Авторство
О чём код?
<?php namespace Illuminate\Console\View\Components; use Symfony\Component\Console\Output\OutputInterface; class Alert extends Component { /** * Renders the component using the given arguments. * * @param string $string * @param int $verbosity * @return void */ public function render($string, $verbosity = OutputInterface::VERBOSITY_NORMAL) { $string = $this->mutate($string, [ Mutators\EnsureDynamicContentIsHighlighted::class, Mutators\EnsurePunctuation::class, Mutators\EnsureRelativePaths::class, ]); $this->renderView('alert', [ 'content' => $string, ], $verbosity); } }