robotstxt : the analyze must be done at start. Use the constructor

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5344 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-06-12 07:03:44 +00:00
parent f574476427
commit 330dfc3993
2 changed files with 67 additions and 133 deletions

View File

@@ -47,7 +47,7 @@ class robotstxt
* @param string $crawlerName The crawler name to use in analyze
* @return $this
*/
public function analyze ($content, $crawlerName)
public function __construct ($content, $crawlerName)
// {{{
{
if (trim ($content) === "")