src/Registry/Common.php
public static function getInstance(array $scope = [], $options = self::ACTION_ALL)
    {
        if (!is_object(self::$instance)) {
            self::$instance = new static($scope, $options);
        }

        return self::$instance;
    }
public static function getInstance(array $scope = [], $options = self::ACTION_ALL)
    {
        if (!is_object(self::$instance)) {
            self::$instance = new static($scope, $options);
        }

        return self::$instance;
    }
public static function getInstance ( array $ scope = [ ] , $ options = self :: ACTION_ALL ) { if ( ! is_object ( self :: $ instance ) ) { self :: $ instance = new static ( $ scope , $ options ) ; } return self :: $ instance ; }
Returns static registry instance.

@param  array $scope
@param  int   $options
@return static
Returns static registry instance .