Skip to content

Commit

Permalink
7.8.7: #163
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Oct 27, 2021
1 parent a22acd3 commit fbe9c4b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
15 changes: 13 additions & 2 deletions Core/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ final function offsetUnset($k) {$this->_st->offsetUnset($this->k($k));}
* 2021-10-26
* @used-by s()
*/
private function __construct() {$this->_st = df_o($this->c());}
private function __construct() {
$this->_prefix = df_class_flc($this);
$this->_st = df_o($this->c());
}

/**
* 2021-10-26
Expand All @@ -69,7 +72,15 @@ private function __construct() {$this->_st = df_o($this->c());}
* @param string $k [optional]
* @return string
*/
private function k($k) {return "df_$k";}
private function k($k) {return "{$this->_prefix}_$k";}

/**
* 2021-10-27
* @used-by __construct()
* @used-by k()
* @var string
*/
private $_prefix;

/**
* 2021-10-26
Expand Down
10 changes: 10 additions & 0 deletions Core/lib/reflection/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,22 @@ function df_class_exists($c) {$c = df_ctr($c); return @class_exists($c);}
* 2016-01-01
* 2016-10-20
* Making $c optional leads to the error «get_class() called without object from outside a class»: https://3v4l.org/k6Hd5
* @used-by df_class_flc()
* @used-by df_class_my()
* @param string|object $c
* @return string
*/
function df_class_f($c) {return df_first(df_explode_class($c));}

/**
* 2021-10-27
* @see df_class_llc()
* @used-by \Df\Core\Session::__construct()
* @param string|object $c
* @return string
*/
function df_class_flc($c) {return strtolower(df_class_f($c));}

/**
* 2017-01-10
* @uses df_cts() отсекает окончание «\Interceptor»: без этого функция работала бы не так, как мы хотим
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/core"
,"version": "7.8.6"
,"version": "7.8.7"
,"description": "Mage2.PRO core package."
,"type": "magento2-module"
,"homepage": "https://mage2.pro"
Expand Down

0 comments on commit fbe9c4b

Please sign in to comment.