You are here

public static function AppService::instance in Forena Reports 8

Singleton Factory

Return value

\Drupal\forena\AppService

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

AppService

Namespace

Drupal\forena

Code

public static function instance($force_new = FALSE) {
  if (static::$instance === null || $force_new) {
    static::$instance = new static();
  }
  return static::$instance;
}