public function createFromContext(ContextInterface $context)
    {
        return $this->create($context->getLocale(), $context->getCurrency()->getCode());
    }
public function createFromContext(ContextInterface $context)
    {
        return $this->create($context->getLocale(), $context->getCurrency()->getCode());
    }
Returns the formatter for the given context.

@param ContextInterface $context

@return Formatter