PHP Класс Webmozart\Console\Handler\Help\HelpAsciiDocHandler

С версии: 1.0
Автор: Bernhard Schussek ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string $path, ExecutableFinder $executableFinder = null, ProcessLauncher $processLauncher = null ) Creates the handler.
getLessBinary ( ) : string Returns the "less" binary used to display the AsciiDoc page.
handle ( Args $args, IO $io )
setLessBinary ( string $lessBinary ) Sets the "less" binary used to display the AsciiDoc page.

Описание методов

__construct() публичный Метод

Creates the handler.
public __construct ( string $path, ExecutableFinder $executableFinder = null, ProcessLauncher $processLauncher = null )
$path string The path to the AsciiDoc file.
$executableFinder Symfony\Component\Process\ExecutableFinder The finder used to find the "less" binary.
$processLauncher Webmozart\Console\Process\ProcessLauncher The launcher for executing the "less" binary.

getLessBinary() публичный Метод

Returns the "less" binary used to display the AsciiDoc page.
public getLessBinary ( ) : string
Результат string The "less" binary or `null` if the binary is auto-detected.

handle() публичный Метод

public handle ( Args $args, IO $io )
$args Webmozart\Console\Api\Args\Args
$io Webmozart\Console\Api\IO\IO

setLessBinary() публичный Метод

Sets the "less" binary used to display the AsciiDoc page.
public setLessBinary ( string $lessBinary )
$lessBinary string The "less" binary to use.