Renamed variables, removeVariable() does not expect indexes
[core.git] / inc / config / class_FrameworkConfiguration.php
index 43383ad5dc45fd1b68177038699f512e9cd969b7..20d80cd6b365d3e48659c0119346b1c5d3f1ad3d 100644 (file)
@@ -176,7 +176,7 @@ class FrameworkConfiguration implements Registerable {
                } // END - if
 
                // Set the configuration value
-               //* NOISY-DEBUG: */ print(__METHOD__ . ':configEntry=' . $configEntry . ',configValue=' . $configValue . PHP_EOL);
+               /* NOISY-DEBUG: */ print(__METHOD__ . ':configEntry=' . $configEntry . ',configValue=' . $configValue . PHP_EOL);
                $this->config[$configEntry] = $configValue;
 
                // Resort the array
@@ -187,22 +187,22 @@ class FrameworkConfiguration implements Registerable {
         * Unset a configuration entry, the entry must be there or else an
         * exception is thrown.
         *
-        * @param       $configKey      Configuration entry to unset
+        * @param       $configEntry    Configuration entry to unset
         * @return      void
         * @throws      NoConfigEntryException  If a configuration element was not found
         */
-       public final function unsetConfigEntry ($configKey) {
+       public final function unsetConfigEntry ($configEntry) {
                // Convert dashes to underscore
                $configEntry = $this->convertDashesToUnderscores($configEntry);
 
                // Is the configuration entry there?
-               if (!$this->isConfigurationEntrySet($configKey)) {
+               if (!$this->isConfigurationEntrySet($configEntry)) {
                        // Entry was not found!
-                       throw new NoConfigEntryException(array(__CLASS__, $configKey), self::EXCEPTION_CONFIG_ENTRY_WAS_NOT_FOUND);
+                       throw new NoConfigEntryException(array(__CLASS__, $configEntry), self::EXCEPTION_CONFIG_ENTRY_WAS_NOT_FOUND);
                } // END - if
 
                // Unset it
-               unset($this->config[$configKey]);
+               unset($this->config[$configEntry]);
        }
 
        /**