DeductionManager.php 706 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: shenyang
  5. * Date: 2017/10/11
  6. * Time: 上午10:41
  7. */
  8. namespace app\frontend\modules\deduction;
  9. use Illuminate\Container\Container;
  10. /**
  11. * 抵扣容器
  12. * Class DeductionManager
  13. * @package app\frontend\modules\deduction
  14. */
  15. class DeductionManager extends Container
  16. {
  17. public function __construct()
  18. {
  19. $this->singleton('DeductionSettingManager', function ($deductionManager, $attributes = []) {
  20. return new DeductionSettingManager($attributes);
  21. });
  22. $this->singleton('GoodsDeductionManager', function ($deductionManager, $attributes = []) {
  23. return new GoodsDeductionManager($attributes);
  24. });
  25. }
  26. }