- Base is done; most of the language's components are now working!

- Implemented OPCACHE caching
- Added View() token logic
- New FileFetcher added to gather files from given view path
This commit is contained in:
mcndave committed 2019-11-01 14:46:01 -04:00
1 parent bcd49884fc
commit 6701a1cd59
16 files changed
+323 -69

No files matched your search

+23 -2
View File
@@ -2,10 +2,31 @@
namespace Picea\Caching;
use Picea\Compiler\Context;
interface Cache {
public function handle(string $fileName) : bool;
/**
* Should return true if a cache instance of given view is found.
*
* @param string $viewPath
* @return bool
*/
public function compiled(string $viewPath) : bool;
public function load();
/**
* Load given view path content based on cache.
*
* @param string $viewPath
* @return string
*/
public function load(string $viewPath, ...$arguments) : object;
/**
* Save a given view path with a compiled context
*
* @param Context $context
* @return bool
*/
public function save(Context $context) : bool;
}