From 755825e00a873425d3b798d8b62276ff332e62fb Mon Sep 17 00:00:00 2001 From: LogMANOriginal Date: Fri, 9 Sep 2016 19:17:15 +0200 Subject: [PATCH] [HttpCachingBridgeAbstract] Change template to use const definitions --- HttpCachingBridgeAbstract.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/HttpCachingBridgeAbstract.md b/HttpCachingBridgeAbstract.md index 3452039..528c8b1 100644 --- a/HttpCachingBridgeAbstract.md +++ b/HttpCachingBridgeAbstract.md @@ -50,16 +50,14 @@ This is the template for a new bridge: ```PHP maintainer = 'No maintainer'; - $this->name = 'Unnamed bridge'; - $this->uri = ''; - $this->description = 'No description provided'; - $this->parameters = array(); - } +class MySiteBridge extends HttpCachingBridgeAbstract { + const MAINTAINER = 'No maintainer'; + const NAME = 'Unnamed bridge'; + const URI = ''; + const DESCRIPTION = 'No description provided'; + const PARAMETERS = array(); - public function collectData(array $params){ + public function collectData(){ // Implement your bridge here! // Example for caching a page with automatic removal after 12 hours