hasArgument() public method

Checks if the given argument exists
public hasArgument ( string $argument ) : boolean
$argument string The argument name
return boolean
コード例 #1
0
 /**
  * Returns true if this factory can handle the requested path
  *
  * @param   PathInformationInterface     $path   The path information
  * @param   string                       $mode   The mode used to open the file
  * @return  boolean                              True if this factory can handle the path
  */
 public function canHandle(PathInformationInterface $path, $mode)
 {
     return $path->hasArgument('log');
 }