<?php
/**
 * Database detector factory.
 *
 * @package LocalGuardScanner
 */

namespace LocalGuardScanner\Detection\Database;

use LocalGuardScanner\Detection\DetectorEngine;

/**
 * Constructs the standard local database detector set.
 */
final class DatabaseDetectorFactory {
	/** @return DetectorEngine */
	public function create() {
		return new DetectorEngine(
			array(
				new UserPrivilegeDetector(),
				new SiteConfigurationDetector(),
				new AutoloadOptionDetector(),
				new CronDetector(),
				new ContentInjectionDetector(),
			)
		);
	}
}
