public static function formWithContext($context) { $form = new AMForm(); $form->setContext($context); return $form; }