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
class Confirm extends Component
6
{
7
    /**
8
     * Renders the component using the given arguments.
9
     *
10
     * @param  string  $question
11
     * @param  bool  $default
12
     * @return bool
13
     */
14
    public function render($question, $default = false)
15
    {
16
        return $this->usingQuestionHelper(
17
            fn () => $this->output->confirm($question, $default),
18
        );
19
    }
20
}