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