file() public static method

public static file ( $value, $message = '' )
Esempio n. 1
0
 /**
  * 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();
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function __construct($filesystemPath, $path = null)
 {
     Assert::file($filesystemPath);
     parent::__construct($filesystemPath, $path);
 }