From 532e663b55e2a04ca95b06da34bfae8e47afe38c Mon Sep 17 00:00:00 2001 From: Onni Hakala Date: Mon, 31 Aug 2015 23:59:53 +0300 Subject: [PATCH 1/3] Added Cache class for using wordpress transients in more readable way --- Herbert/Framework/cache.php | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Herbert/Framework/cache.php diff --git a/Herbert/Framework/cache.php b/Herbert/Framework/cache.php new file mode 100644 index 0000000..cabd5c6 --- /dev/null +++ b/Herbert/Framework/cache.php @@ -0,0 +1,64 @@ + Date: Tue, 1 Sep 2015 00:00:37 +0300 Subject: [PATCH 2/3] added version constraint for php >=5.4 because Cache uses anonymous functions --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 8ce4feb..81c6136 100644 --- a/composer.json +++ b/composer.json @@ -3,6 +3,7 @@ "description": "Herbert", "license": "MIT", "require": { + "php": ">=5.4.0", "twig/twig": "~1.16", "illuminate/database": "~5.0", "vierbergenlars/php-semver": "~3.0", From 08f9f59ccbd8f273a5b02165fdfa72e0d7f63ba5 Mon Sep 17 00:00:00 2001 From: Onni Hakala Date: Tue, 1 Sep 2015 00:47:33 +0300 Subject: [PATCH 3/3] switch same php coding style as in Herbert, use strict typing for cache for easier debugging --- Herbert/Framework/cache.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Herbert/Framework/cache.php b/Herbert/Framework/cache.php index cabd5c6..fe39d3b 100644 --- a/Herbert/Framework/cache.php +++ b/Herbert/Framework/cache.php @@ -1,23 +1,22 @@