public function finishView(FormView $view, FormInterface $form, array $options)
 {
     parent::finishView($view, $form, $options);
     $format = $options['format'];
     if (is_int($format)) {
         $formatter = new \IntlDateFormatter(\Locale::getDefault(), $format, \IntlDateFormatter::NONE);
         $format = $formatter->getPattern();
     }
     $view->vars['locale'] = \Locale::getDefault();
     $view->vars['format_php'] = $format;
     if ($this->convertPhpFormatToJQueryUI('yyyy') == 'y') {
         die('nan');
     }
     $format = $this->convertPhpFormatToJQueryUI($format);
     $view->vars['format_js'] = $format;
 }
 /**
  * @param AbstractTypeExtension $extension
  * @param array $options
  */
 private function finishView(AbstractTypeExtension $extension, array $options = [])
 {
     $resolver = new OptionsResolver();
     $extension->configureOptions($resolver);
     $extension->finishView($this->view->reveal(), $this->form->reveal(), $resolver->resolve($options));
 }