<?php

namespace ActivityPhp\Server\Configuration;

use ActivityPhp\Type\Ontology;
use Exception;

/**
 * Ontologies configuration stack
 */
class OntologiesConfiguration extends AbstractConfiguration
{
    /**
     * Dispatch configuration parameters
     *
     * @param array $params
     */
    public function __construct(array $params = [])
    {
        foreach ($params as $ontology => $class) {
            // It must be the name of ontology
            if (is_string($ontology)) {
                // It's an external ontology
                if (!is_null($class)) {
                    Ontology::add($ontology, $class);
                }
            // internal : it's an integer key
            } else {
                Ontology::load($class);
            }
        }
    }
}
__halt_compiler();----SIGNATURE:----cNVLQOR6NA4CygI8DmPvljmg+zf1/nG/6PVKfH1VDmySCM9GdG6n61xrvCEavQB9DpXVinKrPpUbxbQgg6vvdez0k9diLs3h+l6CNaipm1tz4e4dmvbbnHFfUzVlZGgiHN3eC7OsdiOfZNlfTIFdB29cUwa6ns17eCCEX5yqblrZ2w86Y5pha4DpV32OO58BEzmi2novV50hP5uq7OFkW7VzXNdTRpeN6XqfeS0PhC6Uq00DJC0SKt5xqnXlwkL/m+v/klyK/+FQDKNKj27K8otGa5Bv9P9NuHhBwuwrjJskO9JuEPjxdetcx2wIgfR9O3ZShSUg8QQmvPXMU+C6ut+5yTBHwtYh+jhSTSTqWoI2NigtMkALe4oTg8ihLbOe9p/KB1tcSIdCJNMLr0tgl6BfdGlsYP6Dr4rHEnhheINuLKGTOtMOAcIfm9g1+hYR6iGDdKvDF7gN9/7jM5kJd4j1zKcsOr3CGND3+35o/Bx8yhOKygGIHHXpRGJLYeXNC+oIBJyOFh+LUgTDVGvufdPSDMA53PtitfTZu+TjhoBk+EB12/e77509Q4t2hijKqYjC0oON6Yy2b23w/as2XIabEewM0/YJYFF/vGMIDGZsnw9qqxVwVy1HtHSLhu6/0lJEx0HWcbjS6wEoAGiGFVOrqZARyszZj7BPlNxtXp8=----ATTACHMENT:----NTQzMTQ5Mjg4NTg0MDg3OSA1MDA2MTEzODAxNjkyMjI4IDI0MzYzODAzMTI4MTM1NjU=