You are here

public static function Container::get in Little helpers 7.2

Create or get the singleton container instance.

File

src/Services/Container.php, line 45

Class

Container
Dependency injection container.

Namespace

Drupal\little_helpers\Services

Code

public static function get() {
  $instance =& drupal_static(__CLASS__);
  if (!$instance) {
    $instance = new static();
    $instance
      ->loadSpecsFromHook('little_helpers_services');
  }
  return $instance;
}