Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Console\View\Components;
4
 
5
use Symfony\Component\Console\Output\OutputInterface;
6
 
7
class Alert extends Component
8
{
9
    /**
10
     * Renders the component using the given arguments.
11
     *
12
     * @param  string  $string
13
     * @param  int  $verbosity
14
     * @return void
15
     */
16
    public function render($string, $verbosity = OutputInterface::VERBOSITY_NORMAL)
17
    {
18
        $string = $this->mutate($string, [
19
            Mutators\EnsureDynamicContentIsHighlighted::class,
20
            Mutators\EnsurePunctuation::class,
21
            Mutators\EnsureRelativePaths::class,
22
        ]);
23
 
24
        $this->renderView('alert', [
25
            'content' => $string,
26
        ], $verbosity);
27
    }
28
}