Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielss89 committed Apr 14, 2014
1 parent e044629 commit 204c4d9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions library/Zend/Form/FormElementManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ class FormElementManager extends AbstractPluginManager
'week' => 'Zend\Form\Element\Week',
);

/**
* Keep track of which plugins have been intizalied
* @var array
*/
protected $initializedPlugins = array();

/**
* Don't share form elements by default
*
Expand All @@ -83,7 +77,7 @@ public function __construct(ConfigInterface $configuration = null)
parent::__construct($configuration);

$this->addInitializer(array($this, 'injectFactory'));
$this->addInitializer(array($this, 'injectInitializable'), false);
$this->addInitializer(array($this, 'callElementInit'), false);
}

/**
Expand All @@ -109,9 +103,9 @@ public function injectFactory($element)
/**
* Call init() on any element that implements InitializableInterface
*
* @param $element
* @internal param $element
*/
public function injectInitializable($element)
public function callElementInit($element)
{
if ($element instanceof InitializableInterface) {
$element->init();
Expand Down

0 comments on commit 204c4d9

Please sign in to comment.