<?php

require_once __DIR__.'/../../vendor/autoload.php';

use Helpers\Securite\IntegrityCheckVerify;

$integrityCheckVerify = new IntegrityCheckVerify();
$integrityCheckVerify->verify(__DIR__."\\..\\..\\src", __DIR__);
$integrityCheckVerify->verify(__DIR__."\\..\\..\\config", __DIR__);
$integrityCheckVerify->verify(__DIR__."\\..\\..\\licenses", __DIR__);
$integrityCheckVerify->verify(__DIR__."\\..\\..\\public", __DIR__);
$integrityCheckVerify->verify(__DIR__."\\..\\..\\swagger", __DIR__);
$integrityCheckVerify->verify(__DIR__."\\..\\..\\vendor", __DIR__, true);
$integrityCheckVerify->getContentHash();

echo ($integrityCheckVerify->isValid())?'OK': (string)json_encode($integrityCheckVerify->getErrorReturn());
