diff --git a/configtest.php b/configtest.php new file mode 100644 index 00000000000..ffc067ddefb --- /dev/null +++ b/configtest.php @@ -0,0 +1,36 @@ +write('nothing'); +echo $sfs->read() . PHP_EOL; +$existing_content = file_get_contents($sfs->getFilePath()); +echo $sfs->getFilePath() . PHP_EOL; + +// Modify and resign +file_put_contents($sfs->getFilePath(), $existing_content . 'extra'); +$sfs->resign(); +echo $sfs->read() . PHP_EOL; + +// Fail +////file_put_contents($sfs->getFilePath(), $existing_content . 'extra'); +//echo $sfs->read() . PHP_EOL; + +print_r(get_signed_file_storage_names_with_prefix()); + +print '
'; + +$config = config('foo.bar'); +$config->foo = 'bar'; +$config->save(); +echo config('foo.bar')->foo; +echo '
That should be bar'; \ No newline at end of file