Ajoute le parser Orpi

This commit is contained in:
2020-11-09 17:35:50 +01:00
committed by Gogs
parent 020cd78822
commit 4b9ca23dff
5 changed files with 216 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
namespace App;
use App\Exceptions\UnknownParser;
use GuzzleHttp\Client;
use Illuminate\Support\Facades\Config;
@@ -36,7 +37,11 @@ abstract class Parser
}
}
return null;
throw new UnknownParser(sprintf(
'Can\'t find an url in «%s» file with the following URL «%s». Please update the file accordingly.',
'parser.php',
$url
));
}
/**