diff --git a/Core/Session.php b/Core/Session.php index 3089f85e5..881f52802 100644 --- a/Core/Session.php +++ b/Core/Session.php @@ -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()); } @@ -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 diff --git a/Core/lib/reflection/main.php b/Core/lib/reflection/main.php index 1d9687d14..b5af233da 100644 --- a/Core/lib/reflection/main.php +++ b/Core/lib/reflection/main.php @@ -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»: без этого функция работала бы не так, как мы хотим @@ -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 */ diff --git a/Framework/lib/module/name.php b/Framework/lib/module/name.php index ddf5deed6..4be35e177 100644 --- a/Framework/lib/module/name.php +++ b/Framework/lib/module/name.php @@ -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() diff --git a/composer.json b/composer.json index b75e81516..55b81f6a6 100644 --- a/composer.json +++ b/composer.json @@ -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"