-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1959823
commit 2941f26
Showing
6 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
|
||
return [ | ||
/** | ||
* 下面是第三方扩展库包的配置方式 | ||
*/ | ||
// 这个是扩展extensions的总开关,true代表打开 | ||
'enable' => true, | ||
// 各个入口的配置 | ||
'app' => [ | ||
// 1.公用层 | ||
'common' => [ | ||
// 在公用层的开关,设置成false后,公用层的配置将失效 | ||
'enable' => true, | ||
// 公用层的具体配置下载下面 | ||
'config' => [ | ||
'services' => [ | ||
'class' => 'fecshop\services\Cart', | ||
// 子服务 | ||
'childService' => [ | ||
'quote' => [ | ||
'class' => 'fecshop\services\cart\Quote', | ||
], | ||
'quoteItem' => [ | ||
'class' => 'fecshop\services\cart\QuoteItem', | ||
], | ||
] | ||
], | ||
'modules' => [ | ||
|
||
], | ||
] | ||
], | ||
|
||
], | ||
|
||
]; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
|
||
namespace fecshop\rediscart\services; | ||
|
||
use Yii; | ||
|
||
/** | ||
* Cart services. 购物车service, 执行购物车部分对应的方法。 | ||
* @author Terry Zhao <[email protected]> | ||
* @since 1.0 | ||
*/ | ||
class Cart extends \fecshop\services\Cart | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
|
||
namespace fecshop\rediscart\services\cart; | ||
|
||
//use fecshop\models\mysqldb\Cart as MyCart; | ||
use fecshop\services\Service; | ||
use Yii; | ||
|
||
/** | ||
* Cart services. 对购物车操作的具体实现部分。 | ||
* @author Terry Zhao <[email protected]> | ||
* @since 1.0 | ||
*/ | ||
class Quote extends \fecshop\services\cart\Quote | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
|
||
namespace fecshop\rediscart\services\cart; | ||
|
||
//use fecshop\models\mysqldb\Cart as MyCart; | ||
use fecshop\services\Service; | ||
use Yii; | ||
|
||
/** | ||
* Cart services. 对购物车操作的具体实现部分。 | ||
* @author Terry Zhao <[email protected]> | ||
* @since 1.0 | ||
*/ | ||
class QuoteItem extends \fecshop\services\cart\QuoteItem | ||
{ | ||
|
||
} |