Merge branch 'v1.0.x' into 'master'
Initial commit See merge request !1
This commit is contained in:
commit
5eaec882da
|
@ -16,13 +16,12 @@ use Sikofitt\Mocks\Drupal\Variables;
|
||||||
|
|
||||||
define('CONFIG_PATH', __DIR__ . '/storage');
|
define('CONFIG_PATH', __DIR__ . '/storage');
|
||||||
|
|
||||||
$config = new Variables([]);
|
|
||||||
|
|
||||||
if(!function_exists('variable_get'))
|
if(!function_exists('variable_get'))
|
||||||
{
|
{
|
||||||
function variable_get($variableName, $default = null)
|
function variable_get($variableName, $default = null)
|
||||||
{
|
{
|
||||||
$config = new Variables([]);
|
$config = new Variables();
|
||||||
return $config->variable_get($variableName, $default);
|
return $config->variable_get($variableName, $default);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -32,7 +31,7 @@ if(!function_exists('variable_set'))
|
||||||
{
|
{
|
||||||
function variable_set($variableName, $variableValue)
|
function variable_set($variableName, $variableValue)
|
||||||
{
|
{
|
||||||
$config = new Variables([]);
|
$config = new Variables();
|
||||||
return $config->variable_set($variableName, $variableValue);
|
return $config->variable_set($variableName, $variableValue);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -42,7 +41,7 @@ if(!function_exists('variable_del'))
|
||||||
{
|
{
|
||||||
function variable_del($variableName)
|
function variable_del($variableName)
|
||||||
{
|
{
|
||||||
$config = new Variables([]);
|
$config = new Variables();
|
||||||
return $config->variable_del($variableName);
|
return $config->variable_del($variableName);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -29,6 +29,10 @@ use werx\Config\Providers\JsonProvider;
|
||||||
*/
|
*/
|
||||||
class Variables extends AbstractConfig {
|
class Variables extends AbstractConfig {
|
||||||
|
|
||||||
|
public function __construct() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $data
|
* @param $data
|
||||||
*
|
*
|
||||||
|
|
Reference in New Issue