Property | Type | Description | |
---|---|---|---|
$path | The path to operate on | ||
$response | Format for the response | ||
$result | Encoded response which will be returned |
Method | Description | |
---|---|---|
__construct ( KamranAhmed\Smasher\Contracts\ResponseContract $response ) | Scanner constructor. | |
populate ( $outputDir, $sourceFile ) | Uses the source file to populate the path provided | |
scan ( $path, string $resultPath = '' ) : string | Scans the provided path and returns the encoded response. Also if resultPath is provided then the response will be stored in the resultPath |
Method | Description | |
---|---|---|
getScannedContent ( $path ) : array | Gets the scanned content from passed file | |
probe ( $path, &$parentItem, string $fullPath = '' ) | Probes the path and keeps populating the array with the results |
Method | Description | |
---|---|---|
populatePath ( $outputDir, $sourceFile, array $content = [], boolean $isRecursive = false ) | Uses the smashed/response file to recursively populate the path |
public __construct ( KamranAhmed\Smasher\Contracts\ResponseContract $response ) | ||
$response | KamranAhmed\Smasher\Contracts\ResponseContract |
protected getScannedContent ( $path ) : array | ||
$path | ||
return | array |
public populate ( $outputDir, $sourceFile ) | ||
$outputDir | The directory at which the content from file is to be populated | |
$sourceFile | The file to use for populating |