Skip to content

Commit

Permalink
Renamed FormHelper::inputRegistry() to FormHelper::widgetRegistry().
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Feb 24, 2014
1 parent a081ea4 commit 79dacdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/View/Helper/FormHelper.php
Expand Up @@ -171,7 +171,7 @@ public function __construct(View $View, $settings = array()) {
parent::__construct($View, $settings);

$this->initStringTemplates($this->_defaultTemplates);
$this->inputRegistry($settings['registry'], $settings['widgets']);
$this->widgetRegistry($settings['registry'], $settings['widgets']);
unset($this->settings['widgets'], $this->settings['registry']);

$this->_addDefaultContextProviders();
Expand All @@ -184,7 +184,7 @@ public function __construct(View $View, $settings = array()) {
* @param array $widgets An array of widgets
* @return \Cake\View\Widget\WidgetRegistry
*/
public function inputRegistry(WidgetRegistry $instance = null, $widgets = []) {
public function widgetRegistry(WidgetRegistry $instance = null, $widgets = []) {
if ($instance === null) {
if ($this->_registry === null) {
$this->_registry = new WidgetRegistry($this->_templater, $widgets);
Expand Down

0 comments on commit 79dacdb

Please sign in to comment.