public static function consume($var)
    {
        if (strpos($var, '.') === false) {
            if (!isset(static::$_values[$var])) {
                return null;
            }
            $value = static::$_values[$var];
            unset(static::$_values[$var]);

            return $value;
        }
        $value = Hash::get(static::$_values, $var);
        static::delete($var);

        return $value;
    }
public static function consume($var)
    {
        if (strpos($var, '.') === false) {
            if (!isset(static::$_values[$var])) {
                return null;
            }
            $value = static::$_values[$var];
            unset(static::$_values[$var]);

            return $value;
        }
        $value = Hash::get(static::$_values, $var);
        static::delete($var);

        return $value;
    }
public static function consume ( $ var ) { if ( strpos ( $ var , '.' ) === false ) { if ( ! isset ( static :: $ _values [ $ var ] ) ) { return null ; } $ value = static :: $ _values [ $ var ] ; unset ( static :: $ _values [ $ var ] ) ; return $ value ; } $ value = Hash :: get ( static :: $ _values , $ var ) ; static :: delete ( $ var ) ; return $ value ; }
Used to read and delete a variable from Configure.

This is primarily used during bootstrapping to move configuration data
out of configure into the various other classes in CakePHP.

@param string $var The key to read and remove.
@return array|string|null
Used to read and delete a variable from Configure .