public function registerAnalysers()
    {
        $jsonFile = Environment::getJsonConfigFilename();
        if (!$jsonFile) {
            return;
        }

        $config = new Config;
        $var    = $config->validate($jsonFile);

        foreach ($var['analysers'] as $analyser) {
            if (class_exists($analyser['class'])) {
                $analyser = new $analyser['class'];

                if ($analyser instanceof AnalyserInterface) {
                    $this->addAnalyser($analyser);
                }
            }
        }
    }
public function registerAnalysers()
    {
        $jsonFile = Environment::getJsonConfigFilename();
        if (!$jsonFile) {
            return;
        }

        $config = new Config;
        $var    = $config->validate($jsonFile);

        foreach ($var['analysers'] as $analyser) {
            if (class_exists($analyser['class'])) {
                $analyser = new $analyser['class'];

                if ($analyser instanceof AnalyserInterface) {
                    $this->addAnalyser($analyser);
                }
            }
        }
    }
public function registerAnalysers ( ) { $ jsonFile = Environment :: getJsonConfigFilename ( ) ; if ( ! $ jsonFile ) { return ; } $ config = new Config ; $ var = $ config -> validate ( $ jsonFile ) ; foreach ( $ var [ 'analysers' ] as $ analyser ) { if ( class_exists ( $ analyser [ 'class' ] ) ) { $ analyser = new $ analyser [ 'class' ] ; if ( $ analyser instanceof AnalyserInterface ) { $ this -> addAnalyser ( $ analyser ) ; } } } }
Loads all analysers declared in the JSON config file.

@return void
Loads all analysers declared in the JSON config file .