mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
simplyfy session factory
This commit is contained in:
parent
0ef75351cc
commit
b0acc20435
1 changed files with 0 additions and 3 deletions
|
@ -10,9 +10,6 @@ use Inpsyde\PayPalCommerce\Session\Cancellation\CancelView;
|
|||
return [
|
||||
'session.handler' => function (ContainerInterface $container) : SessionHandler {
|
||||
|
||||
if (is_admin()) {
|
||||
return new SessionHandler();
|
||||
}
|
||||
if (is_null(WC()->session)) {
|
||||
return new SessionHandler();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue