src/TreeLayoutStack/TemplatingService.php
public static function factory($aOptions){
		if($aOptions instanceof \Traversable)$aOptions = \Zend\Stdlib\ArrayUtils::iteratorToArray($aOptions);
		elseif(!is_array($aOptions))throw new \InvalidArgumentException(__METHOD__.' expects an array or Traversable object; received "'.(is_object($aOptions)?get_class($aOptions):gettype($aOptions)).'"');
		return new static(new \TreeLayoutStack\TemplatingConfiguration($aOptions));
	}
public static function factory($aOptions){
		if($aOptions instanceof \Traversable)$aOptions = \Zend\Stdlib\ArrayUtils::iteratorToArray($aOptions);
		elseif(!is_array($aOptions))throw new \InvalidArgumentException(__METHOD__.' expects an array or Traversable object; received "'.(is_object($aOptions)?get_class($aOptions):gettype($aOptions)).'"');
		return new static(new \TreeLayoutStack\TemplatingConfiguration($aOptions));
	}
public static function factory ( $ aOptions ) { if ( $ aOptions instanceof \ Traversable ) $ aOptions = \ Zend \ Stdlib \ ArrayUtils :: iteratorToArray ( $ aOptions ) ; elseif ( ! is_array ( $ aOptions ) ) throw new \ InvalidArgumentException ( __METHOD__ . ' expects an array or Traversable object; received "' . ( is_object ( $ aOptions ) ? get_class ( $ aOptions ) : gettype ( $ aOptions ) ) . '"' ) ; return new static ( new \ TreeLayoutStack \ TemplatingConfiguration ( $ aOptions ) ) ; }
Instantiate a Templating service
@param array|Traversable $aOptions
@throws \InvalidArgumentException
@return \TreeLayoutStack\TemplatingService
Instantiate a Templating service