protected function configure(Config $config, array $json) : void
    {
        Util::validateJsonConfiguration($json);

        foreach (HookUtil::getValidHooks() as $hook => $class) {
            if (isset($json[$hook])) {
                $this->configureHook($config->getHookConfig($hook), $json[$hook]);
            }
        }
    }
protected function configure(Config $config, array $json) : void
    {
        Util::validateJsonConfiguration($json);

        foreach (HookUtil::getValidHooks() as $hook => $class) {
            if (isset($json[$hook])) {
                $this->configureHook($config->getHookConfig($hook), $json[$hook]);
            }
        }
    }
protected function configure ( Config $ config , array $ json ) : void { Util :: validateJsonConfiguration ( $ json ) ; foreach ( HookUtil :: getValidHooks ( ) as $ hook => $ class ) { if ( isset ( $ json [ $ hook ] ) ) { $ this -> configureHook ( $ config -> getHookConfig ( $ hook ) , $ json [ $ hook ] ) ; } } }
Initialize the configuration with data load from config file

@param  \CaptainHook\App\Config $config
@param  array                   $json
@return void
@throws \Exception
Initialize the configuration with data load from config file