Knp\Bundle\KnpBundlesBundle\Finder\CommonFinder::findPage PHP Method

findPage() protected method

Finds the repositories of the specified page url
protected findPage ( integer $page ) : array
$page integer
return array
    protected function findPage($page)
    {
        $crawler = $this->doRequest($page);
        $urls = $this->extractPageUrls($crawler);
        $repositories = array();
        foreach ($urls as $url) {
            $repository = $this->extractUrlRepository($url);
            if (null !== $repository && !in_array($repository, $repositories)) {
                $repositories[] = $repository;
            }
        }
        return $repositories;
    }