Skip to content

Commit

Permalink
Add property $_config to StaticConfigTrait.
Browse files Browse the repository at this point in the history
This avoids having to declare the property in each class that uses the trait.
  • Loading branch information
ADmad committed Apr 3, 2014
1 parent 82ffacc commit 9a0f883
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 33 deletions.
10 changes: 0 additions & 10 deletions src/Cache/Cache.php
Expand Up @@ -76,16 +76,6 @@ class Cache {
*/
protected static $_enabled = true;

/**
* Cache configuration.
*
* Keeps the permanent/default settings for each cache engine.
* These settings are used to reset the engines after temporary modification.
*
* @var array
*/
protected static $_config = [];

/**
* Group to Config mapping
*
Expand Down
9 changes: 7 additions & 2 deletions src/Core/StaticConfigTrait.php
@@ -1,7 +1,5 @@
<?php
/**
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
Expand All @@ -27,6 +25,13 @@
*/
trait StaticConfigTrait {

/**
* Configuration sets.
*
* @var array
*/
protected static $_config = [];

/**
* This method can be used to define confguration adapters for an application
* or read existing configuration.
Expand Down
7 changes: 0 additions & 7 deletions src/Datasource/ConnectionManager.php
Expand Up @@ -33,13 +33,6 @@ class ConnectionManager {
config as protected _config;
}

/**
* Holds a list of connection configurations
*
* @var array
*/
protected static $_config = [];

/**
* A map of connection aliases.
*
Expand Down
7 changes: 0 additions & 7 deletions src/Log/Log.php
Expand Up @@ -115,13 +115,6 @@ class Log {
*/
protected static $_dirtyConfig = false;

/**
* An array of configured loggers.
*
* @var array
*/
protected static $_config = [];

/**
* LogEngineRegistry class
*
Expand Down
7 changes: 0 additions & 7 deletions src/Network/Email/Email.php
Expand Up @@ -295,13 +295,6 @@ class Email {
*/
protected $_boundary = null;

/**
* Configuration profiles for use in instances.
*
* @var array
*/
protected static $_config = [];

/**
* Configuration profiles for transports.
*
Expand Down

0 comments on commit 9a0f883

Please sign in to comment.