/** * Creates a new AsciiDoc descriptor. * * @param ExecutableFinder $executableFinder The finder used to find the * "man" binary. * @param ProcessLauncher $processLauncher The launcher for executing the * "man" 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(); }
/** * {@inheritdoc} */ public function __construct($filesystemPath, $path = null) { Assert::file($filesystemPath); parent::__construct($filesystemPath, $path); }