Webmozart\Console\Handler\Help\HelpAsciiDocHandler::__construct PHP Method

__construct() public method

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.
    public function __construct($path, ExecutableFinder $executableFinder = null, ProcessLauncher $processLauncher = null)
    {
        Assert::file($path);
        $this->path = $path;
        $this->executableFinder = $executableFinder ?: new ExecutableFinder();
        $this->processLauncher = $processLauncher ?: new ProcessLauncher();
    }