From 19cb338a7971ec5049c11eb3ebceeb2d03f2ba86 Mon Sep 17 00:00:00 2001 From: Hill Date: Mon, 7 Aug 2023 03:16:16 +0800 Subject: [PATCH] fixed caller not public --- src/_cdn.php | 1 + src/_country.php | 5 +++-- src/_utm.php | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/_cdn.php b/src/_cdn.php index 122a041..f6e397e 100644 --- a/src/_cdn.php +++ b/src/_cdn.php @@ -6,6 +6,7 @@ class cdn { + public $caller; function __invoke($key) { $cdn = $this->caller->get('HTTP_CF_RAY'); diff --git a/src/_country.php b/src/_country.php index 9c079dd..a228f62 100644 --- a/src/_country.php +++ b/src/_country.php @@ -2,10 +2,11 @@ namespace PMVC\PlugIn\getenv; -${_INIT_CONFIG}[_CLASS] = __NAMESPACE__.'\country'; +${_INIT_CONFIG}[_CLASS] = __NAMESPACE__ . '\country'; -class country +class country { + public $caller; function __invoke($key) { $country = $this->caller->get('HTTP_CF_IPCOUNTRY'); diff --git a/src/_utm.php b/src/_utm.php index bec56d0..762beb9 100644 --- a/src/_utm.php +++ b/src/_utm.php @@ -6,6 +6,7 @@ class utm { + public $caller; function __invoke($key) { $rawKeys = ['source', 'medium', 'campaign'];