public static function AppService::instance in Forena Reports 8
Singleton Factory
Return value
3 calls to AppService::instance()
- DataManager::__construct in src/
DataManager.php - FrxAPI::app in src/
FrxAPI.php - Returns containing application service
- TestingReportFileSystem::__construct in tests/
src/ Unit/ Mock/ TestingReportFileSystem.php - Constructor Sets the initial reort directory
File
- src/
AppService.php, line 29
Class
Namespace
Drupal\forenaCode
public static function instance($force_new = FALSE) {
if (static::$instance === null || $force_new) {
static::$instance = new static();
}
return static::$instance;
}