for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the MilioooMessageBundle package.
*
* (c) Michiel boeckaert <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Miliooo\Messaging\Form\FormFactory;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormFactoryInterface;
/**
* Instantiates forms for adding a message
* @author Michiel Boeckaert <[email protected]>
abstract class AbstractMessageFormFactory
{
* The Symfony form factory
* @var FormFactoryInterface
protected $formFactory;
* The message form type
* @var AbstractType
protected $formType;
* The name of the form
* @var string
protected $formName;
* The FQCN of the message model
protected $modelClassName;
* Constructor.
* @param FormFactoryInterface $formFactory A form factory instance
* @param AbstractType $formType The form type
* @param string $formName Name of the form
* @param string $modelClassName FQCN of the form model
public function __construct(FormFactoryInterface $formFactory, AbstractType $formType, $formName, $modelClassName)
$this->formFactory = $formFactory;
$this->formType = $formType;
$this->formName = $formName;
$this->modelClassName = $modelClassName;
}