PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.4
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.4
1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk 1.2.0 All 47 releases
fluent-cart / boot / bindings.php

bindings.php in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.6.4, at boot/bindings.php

42 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
2 <?php
3
4 /**
5 * Add only the plugin specific bindings here.
6 *
7 * @var $app \FluentCart\Framework\Foundation\Application
8 */
9
10 use FluentCart\App\App;
11 use FluentCart\App\Modules\PaymentMethods\Core\GatewayManager;
12 use \FluentCart\App\Services\Localization\LocalizationManager;
13
14 $app->singleton(\FluentCart\Api\StoreSettings::class);
15 $app->alias(\FluentCart\Api\StoreSettings::class, 'store_settings');
16
17 // Payment Gateway Manager binding
18 $app->singleton(GatewayManager::class, function($app) {
19 return GatewayManager::getInstance();
20 });
21 $app->alias(GatewayManager::class, 'gateway');
22
23
24 // Localization Manager binding
25 $app->singleton(LocalizationManager::class, function($app) {
26 return LocalizationManager::getInstance();
27 });
28 $app->alias(LocalizationManager::class, 'localization');
29
30
31 //$app->singleton(Store::class, function($app) {
32 // $config = $app->make('config')->get('session');
33 // return new Store('fluentcart_session', new DatabaseSessionHandler(
34 // $app->make('db'),
35 // $config['table'],
36 // $config['lifetime'],
37 // $app
38 // ));
39 //});
40 //
41 //$app->alias(Store::class, 'session');
42