Skip to content
Permalink
Browse files

Renamed FormHelper::inputRegistry() to FormHelper::widgetRegistry().

  • Loading branch information...
ADmad committed Feb 24, 2014
1 parent a081ea4 commit 79dacdbf0828838f4b65906f6eaff36815e5e746
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/View/Helper/FormHelper.php
@@ -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();
@@ -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);

0 comments on commit 79dacdb

Please sign in to comment.
You can’t perform that action at this time.