добавил абстракций и первые варианты для парсинга результатов према

This commit is contained in:
2024-10-10 11:51:24 +03:00
parent 984f6bda0a
commit 3b6fecec6c
310 changed files with 7831 additions and 44954 deletions

View File

@ -1,5 +1,6 @@
<?php
use SvedenParser\ContingentParser\ContingentFacade;
use SvedenParser\ContingentParser\ContingentManager;
require_once __DIR__ . "/vendor/autoload.php";
@ -36,7 +37,7 @@ function write($file, $source)
}
}
$facade = new ContingentFacade();
$facade = new ContingentManager();
$sourceAll = $facade->getSites();
$all = array_column($sourceAll, 'org_id'); // все организации
$inBase = $facade->getOrgInOpendata(); // организации уже в базе