Свойство | Тип | Описание | |
---|---|---|---|
$consoleOutput | Symfony\Component\Console\Output\OutputInterface | ||
$crawledUrls | array | ||
$outputFile | string | null |
Метод | Описание | |
---|---|---|
__construct ( Symfony\Component\Console\Output\OutputInterface $consoleOutput ) | ||
finishedCrawling ( ) | Called when the crawl has ended. | |
hasBeenCrawled ( |
Called when the crawler has crawled the given url. | |
setOutputFile ( string $filename ) | Set the filename to write the output log. | |
startsWith ( string | null $haystack, string | array $needles ) : boolean | ||
willCrawl ( |
Called when the crawl will crawl the url. |
Метод | Описание | |
---|---|---|
getColorTagForStatusCode ( string $code ) : string |
public __construct ( Symfony\Component\Console\Output\OutputInterface $consoleOutput ) | ||
$consoleOutput | Symfony\Component\Console\Output\OutputInterface |
protected getColorTagForStatusCode ( string $code ) : string | ||
$code | string | |
Результат | string |
public hasBeenCrawled ( |
||
$url | ||
$response | Psr\Http\Message\ResponseInterface | null | |
$foundOn |
public setOutputFile ( string $filename ) | ||
$filename | string |
public willCrawl ( |
||
$url |
protected OutputInterface,Symfony\Component\Console\Output $consoleOutput | ||
Результат | Symfony\Component\Console\Output\OutputInterface |