public function getInstance(Injector $injector, $name)
    {
        if (null === $this->array) {
            $this->array = $this->resolve($injector, $name);
        }

        return $this->array;
    }
public function getInstance(Injector $injector, $name)
    {
        if (null === $this->array) {
            $this->array = $this->resolve($injector, $name);
        }

        return $this->array;
    }
returns the created instance

@param   \stubbles\ioc\Injector  $injector
@param   string                  $name
@return  mixed