/** * Set automatic registration of entities and documentation folders * * @see DocumentationService::$automatic_registration * @param bool */ public static function set_automatic_registration($bool = true) { self::$automatic_registration = $bool; if (!$bool) { // remove current registed entities when disabling automatic registration // needed to avoid caching issues when running all the tests self::$registered_entities = array(); } }