src/mako/common/AdapterManager.php
public function instance(?string $configuration = null)
	{
		$configuration = $configuration ?? $this->default;

		if(!isset($this->instances[$configuration]))
		{
			$this->instances[$configuration] = $this->instantiate($configuration);
		}

		return $this->instances[$configuration];
	}
public function instance(?string $configuration = null)
	{
		$configuration = $configuration ?? $this->default;

		if(!isset($this->instances[$configuration]))
		{
			$this->instances[$configuration] = $this->instantiate($configuration);
		}

		return $this->instances[$configuration];
	}
public function instance ( ? string $ configuration = null ) { $ configuration = $ configuration ?? $ this -> default ; if ( ! isset ( $ this -> instances [ $ configuration ] ) ) { $ this -> instances [ $ configuration ] = $ this -> instantiate ( $ configuration ) ; } return $ this -> instances [ $ configuration ] ; }
Returns an instance of the chosen adapter configuration.

@param  string|null $configuration Configuration name
@return mixed
Returns an instance of the chosen adapter configuration .