You are here

public static function AppContext::create in Forena Reports 8

Singleton factory.

Return value

static

1 call to AppContext::create()
AjaxPageControllerBase::__construct in src/Controller/AjaxPageControllerBase.php
AjaxPageControllerBase constructor.

File

src/Context/AppContext.php, line 28

Class

AppContext

Namespace

Drupal\forena\Context

Code

public static function create() {
  if (static::$instance === NULL) {
    static::$instance = new static();
  }
  return static::$instance;
}