public function getPageForUri($uri)
    {
        $pageIdentifier = trim(urldecode($uri), '/');

        $pageRepository = new PageRepository();

        return $pageRepository->findByIdentifier($pageIdentifier);
    }
public function getPageForUri($uri)
    {
        $pageIdentifier = trim(urldecode($uri), '/');

        $pageRepository = new PageRepository();

        return $pageRepository->findByIdentifier($pageIdentifier);
    }
public function getPageForUri ( $ uri ) { $ pageIdentifier = trim ( urldecode ( $ uri ) , '/' ) ; $ pageRepository = new PageRepository ( ) ; return $ pageRepository -> findByIdentifier ( $ pageIdentifier ) ; }
Returns the Page for the page URI or NULL if no data was found

@param string $uri
@return Page
Returns the Page for the page URI or NULL if no data was found