Browse Source

Merge pull request #3144 from ADmad/3.0-config-merge

Don't bother passing default arguments.
Mark Story 12 years ago
parent
commit
fcf0da49cd

+ 1 - 1
src/Controller/Component.php

@@ -105,7 +105,7 @@ class Component extends Object implements EventListener {
 	public function __construct(ComponentRegistry $registry, $config = []) {
 		$this->_registry = $registry;
 
-		$this->config($config, null, true);
+		$this->config($config);
 
 		$this->_set($this->config());
 

+ 1 - 1
src/Controller/Component/Auth/AbstractPasswordHasher.php

@@ -41,7 +41,7 @@ abstract class AbstractPasswordHasher {
  * @param array $config Array of config.
  */
 	public function __construct($config = array()) {
-		$this->config($config, null, true);
+		$this->config($config);
 	}
 
 /**

+ 1 - 1
src/Controller/Component/Auth/BaseAuthenticate.php

@@ -79,7 +79,7 @@ abstract class BaseAuthenticate {
  */
 	public function __construct(ComponentRegistry $registry, $config) {
 		$this->_registry = $registry;
-		$this->config($config, null, true);
+		$this->config($config);
 	}
 
 /**

+ 1 - 1
src/Controller/Component/Auth/BaseAuthorize.php

@@ -81,7 +81,7 @@ abstract class BaseAuthorize {
 		$this->_registry = $registry;
 		$controller = $registry->getController();
 		$this->controller($controller);
-		$this->config($config, null, true);
+		$this->config($config);
 	}
 
 /**

+ 1 - 1
src/ORM/Behavior.php

@@ -126,7 +126,7 @@ class Behavior implements EventListener {
  * @param array $config The config for this behavior.
  */
 	public function __construct(Table $table, array $config = []) {
-		$this->config($config, null, true);
+		$this->config($config);
 	}
 
 /**

+ 1 - 1
src/Routing/DispatcherFilter.php

@@ -53,7 +53,7 @@ abstract class DispatcherFilter implements EventListener {
  * @param array $config Settings for the filter.
  */
 	public function __construct($config = []) {
-		$this->config($config, null, true);
+		$this->config($config);
 	}
 
 /**

+ 1 - 1
src/View/Helper.php

@@ -153,7 +153,7 @@ class Helper extends Object implements EventListener {
 		if ($config) {
 			$config = Hash::merge($this->_defaultConfig, $config);
 		}
-		$this->config($config, null, true);
+		$this->config($config);
 
 		if (!empty($this->helpers)) {
 			$this->_helperMap = $View->Helpers->normalizeArray($this->helpers);

+ 1 - 1
src/View/StringTemplate.php

@@ -60,7 +60,7 @@ class StringTemplate {
  * @param array $templates A set of templates to add.
  */
 	public function __construct(array $config = []) {
-		$this->config($config, null, true);
+		$this->config($config);
 	}
 
 /**