From d65bc5c2add2e27670f4eaeba9854e7f886c7195 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Wed, 9 Mar 2016 20:51:04 +1100 Subject: [PATCH] Introduce a CmsObject interface This will be useful to decouple ComponentPartial and Asset objects from their Halcyon counterparts An Asset is technically not a template, it may be hosted via a CDN or others A ComponentPartial is also different, it is read only and doesn't require caching --- modules/cms/contracts/CmsObject.php | 39 +++++++++++++++++++++++++++++ modules/cms/twig/Loader.php | 4 +-- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 modules/cms/contracts/CmsObject.php diff --git a/modules/cms/contracts/CmsObject.php b/modules/cms/contracts/CmsObject.php new file mode 100644 index 000000000..4e42c9988 --- /dev/null +++ b/modules/cms/contracts/CmsObject.php @@ -0,0 +1,39 @@ +