/** * Tries to load the 'TYPO3.Flow.error.debugger.ignoredClasses' setting * to build a regular expression that can be used to filter ignored class names * If settings can't be loaded it uses self::$ignoredClassesFallback. * * @return string */ public static function getIgnoredClassesRegex() { if (self::$ignoredClassesRegex !== '') { return self::$ignoredClassesRegex; } $ignoredClassesConfiguration = self::$ignoredClassesFallback; $ignoredClasses = array(); if (self::$objectManager instanceof ObjectManagerInterface) { $configurationManager = self::$objectManager->get('TYPO3\\Flow\\Configuration\\ConfigurationManager'); if ($configurationManager instanceof ConfigurationManager) { $ignoredClassesFromSettings = $configurationManager->getConfiguration('Settings', 'TYPO3.Flow.error.debugger.ignoredClasses'); if (is_array($ignoredClassesFromSettings)) { $ignoredClassesConfiguration = Arrays::arrayMergeRecursiveOverrule($ignoredClassesConfiguration, $ignoredClassesFromSettings); } } } foreach ($ignoredClassesConfiguration as $classNamePattern => $active) { if ($active === TRUE) { $ignoredClasses[] = $classNamePattern; } } self::$ignoredClassesRegex = sprintf('/^%s$/xs', implode('$|^', $ignoredClasses)); return self::$ignoredClassesRegex; }
/** * Clear the state of the debugger * * @return void */ public static function clearState() { self::$renderedObjects = array(); }