src/mako/cache/CacheManager.php
protected function instantiate(string $configuration)
	{
		if(!isset($this->configurations[$configuration]))
		{
			throw new RuntimeException(vsprintf('[ %s ] has not been defined in the cache configuration.', [$configuration]));
		}

		$configuration = $this->configurations[$configuration];

		return $this->factory($configuration['type'], $configuration);
	}
protected function instantiate(string $configuration)
	{
		if(!isset($this->configurations[$configuration]))
		{
			throw new RuntimeException(vsprintf('[ %s ] has not been defined in the cache configuration.', [$configuration]));
		}

		$configuration = $this->configurations[$configuration];

		return $this->factory($configuration['type'], $configuration);
	}
protected function instantiate ( string $ configuration ) { if ( ! isset ( $ this -> configurations [ $ configuration ] ) ) { throw new RuntimeException ( vsprintf ( '[ %s ] has not been defined in the cache configuration.' , [ $ configuration ] ) ) ; } $ configuration = $ this -> configurations [ $ configuration ] ; return $ this -> factory ( $ configuration [ 'type' ] , $ configuration ) ; }
Returns a cache instance.

@param  string                            $configuration Configuration name
@throws \RuntimeException
@return \mako\cache\stores\StoreInterface
Returns a cache instance .