Skip to content

Commit

Permalink
https://github.com/mage2pro/core/issues/163
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Oct 26, 2021
1 parent b4449ea commit 701c948
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Core/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
/**
* 2021-10-22 "Improve the custom session data handling interface": https://github.com/mage2pro/core/issues/163
* @see \Df\Checkout\Session
* @see \Df\Customer\Session
*/
abstract class Session implements \ArrayAccess {
/**
* 2021-10-22
* @used-by __construct()
* @see \Df\Checkout\Session::c()
* @see \Df\Customer\Session::c()
* @return string
*/
abstract protected function c();
Expand Down
14 changes: 14 additions & 0 deletions Customer/Session.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
namespace Df\Customer;
use Magento\Customer\Model\Session\Storage;
# 2021-10-26 "Improve the custom session data handling interface": https://github.com/mage2pro/core/issues/163
final class Session extends \Df\Core\Session {
/**
* 2021-10-26
* @override
* @see \Df\Core\Session::c()
* @used-by \Df\Core\Session::__construct()
* @return string
*/
protected function c() {return Storage::class;}
}

0 comments on commit 701c948

Please sign in to comment.