protected function _make($config = null)
    {
        $productClassname = $this->_normalizeString($this->_getProductClassname());
        if (!$this->_classExists($productClassname)) {
            throw $this->_createOutOfRangeException($this->__('Class "%1$s" does not exist', [$productClassname]), null, null, $productClassname);
        }

        $template = $this->_containerGet($config, TemplateFactoryInterface::K_TEMPLATE);

        return new $productClassname($template, $this->_getTokenStart(), $this->_getTokenEnd(), $this->_getDefaultPlaceholderValue());
    }
protected function _make($config = null)
    {
        $productClassname = $this->_normalizeString($this->_getProductClassname());
        if (!$this->_classExists($productClassname)) {
            throw $this->_createOutOfRangeException($this->__('Class "%1$s" does not exist', [$productClassname]), null, null, $productClassname);
        }

        $template = $this->_containerGet($config, TemplateFactoryInterface::K_TEMPLATE);

        return new $productClassname($template, $this->_getTokenStart(), $this->_getTokenEnd(), $this->_getDefaultPlaceholderValue());
    }
protected function _make ( $ config = null ) { $ productClassname = $ this -> _normalizeString ( $ this -> _getProductClassname ( ) ) ; if ( ! $ this -> _classExists ( $ productClassname ) ) { throw $ this -> _createOutOfRangeException ( $ this -> __ ( 'Class "%1$s" does not exist' , [ $ productClassname ] ) , null , null , $ productClassname ) ; } $ template = $ this -> _containerGet ( $ config , TemplateFactoryInterface :: K_TEMPLATE ) ; return new $ productClassname ( $ template , $ this -> _getTokenStart ( ) , $ this -> _getTokenEnd ( ) , $ this -> _getDefaultPlaceholderValue ( ) ) ; }
Creates a new instance of a placeholder template.

@since [*next-version*]

@param array|ArrayAccess|BaseContainerInterface|stdClass|null $config The make config.

@throws InvalidArgumentException    If product classname is not a valid type.
@throws OutOfRangeException         If class that the factory is trying to make does not exist.
@throws ContainerExceptionInterface If one of the required config keys cannot be accessed.
@throws RootException               For other problems.

@return TemplateInterface The new template instance.
Creates a new instance of a placeholder template .