Skip to content

Commit

Permalink
fixed caller not public
Browse files Browse the repository at this point in the history
  • Loading branch information
HillLiu committed Aug 6, 2023
1 parent 5723af7 commit 19cb338
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/_cdn.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

class cdn
{
public $caller;
function __invoke($key)
{
$cdn = $this->caller->get('HTTP_CF_RAY');
Expand Down
5 changes: 3 additions & 2 deletions src/_country.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions src/_utm.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

class utm
{
public $caller;
function __invoke($key)
{
$rawKeys = ['source', 'medium', 'campaign'];
Expand Down

0 comments on commit 19cb338

Please sign in to comment.