Initial commit

This commit is contained in:
R. Eric Wheeler 2016-08-05 15:04:58 -07:00
parent 881cc3a551
commit 552eaf162c
2 changed files with 7 additions and 4 deletions

View File

@ -16,13 +16,12 @@ use Sikofitt\Mocks\Drupal\Variables;
define('CONFIG_PATH', __DIR__ . '/storage');
$config = new Variables([]);
if(!function_exists('variable_get'))
{
function variable_get($variableName, $default = null)
{
$config = new Variables([]);
$config = new Variables();
return $config->variable_get($variableName, $default);
}
@ -32,7 +31,7 @@ if(!function_exists('variable_set'))
{
function variable_set($variableName, $variableValue)
{
$config = new Variables([]);
$config = new Variables();
return $config->variable_set($variableName, $variableValue);
};
@ -42,7 +41,7 @@ if(!function_exists('variable_del'))
{
function variable_del($variableName)
{
$config = new Variables([]);
$config = new Variables();
return $config->variable_del($variableName);
}
}

View File

@ -29,6 +29,10 @@ use werx\Config\Providers\JsonProvider;
*/
class Variables extends AbstractConfig {
public function __construct() {
}
/**
* @param $data
*