merged branch greg0ire/patch-1 (PR #2604)
Commits
-------
5b30812
See this issue : https://github.com/symfony/symfony/issues/2433
Discussion
----------
See this issue : https://github.com/symfony/symfony/issues/2433
I changed the access speficiers to `protected`, which makes easier to extend this class if one needs to like I did.
---------------------------------------------------------------------------
by greg0ire at 2011/11/10 06:55:12 -0800
Precision on the problem I had : I wanted to use a `CollectionType` and display a collection element attribute as the label for this element. I had no choice but to extend `ResizeFormListener` and `CollectionType`.
This commit is contained in:
commit
a8e8008df3
@ -28,29 +28,29 @@ class ResizeFormListener implements EventSubscriberInterface
|
||||
/**
|
||||
* @var FormFactoryInterface
|
||||
*/
|
||||
private $factory;
|
||||
protected $factory;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $type;
|
||||
protected $type;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $options;
|
||||
protected $options;
|
||||
|
||||
/**
|
||||
* Whether children could be added to the group
|
||||
* @var Boolean
|
||||
*/
|
||||
private $allowAdd;
|
||||
protected $allowAdd;
|
||||
|
||||
/**
|
||||
* Whether children could be removed from the group
|
||||
* @var Boolean
|
||||
*/
|
||||
private $allowDelete;
|
||||
protected $allowDelete;
|
||||
|
||||
public function __construct(FormFactoryInterface $factory, $type, array $options = array(), $allowAdd = false, $allowDelete = false)
|
||||
{
|
||||
|
Reference in New Issue
Block a user