Skip to content

Commit

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

Expand All @@ -72,7 +72,7 @@ private function __construct() {
* @param string $k [optional]
* @return string
*/
private function k($k) {return "{$this->_prefix}_$k";}
private function k($k) {return $this->_prefix . $k;}

/**
* 2021-10-27
Expand Down
11 changes: 1 addition & 10 deletions Core/lib/reflection/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,12 @@ 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 Expand Up @@ -113,6 +103,7 @@ function df_class_l($c) {return df_last(df_explode_class($c));}

/**
* 2018-01-30
* 2021-10-27 @deprecared It is unused.
* @param string|object $c
* @return string
*/
Expand Down
1 change: 1 addition & 0 deletions Framework/lib/module/name.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* @used-by df_sentry_module()
* @used-by df_widget()
* @used-by dfpm_title()
* @used-by \Df\Core\Session::__construct()
* @used-by \Df\Framework\Plugin\View\Element\AbstractBlock::afterGetModuleName()
* @used-by \Df\Payment\Method::s()
* @used-by \Df\Shipping\Method::s()
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.7"
,"version": "7.8.8"
,"description": "Mage2.PRO core package."
,"type": "magento2-module"
,"homepage": "https://mage2.pro"
Expand Down

0 comments on commit eb34407

Please sign in to comment.