hiqdev /
billing-hiapi
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * API for Billing |
||
| 4 | * |
||
| 5 | * @link https://github.com/hiqdev/billing-hiapi |
||
| 6 | * @package billing-hiapi |
||
| 7 | * @license BSD-3-Clause |
||
| 8 | * @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/) |
||
| 9 | */ |
||
| 10 | |||
| 11 | $singletons = [ |
||
| 12 | \hiqdev\yii\DataMapper\components\EntityManagerInterface::class => [ |
||
| 13 | 'repositories' => [ |
||
| 14 | \hiqdev\php\billing\type\Type::class => \hiqdev\billing\hiapi\type\TypeRepository::class, |
||
| 15 | \hiqdev\php\billing\bill\Bill::class => \hiqdev\billing\hiapi\bill\BillRepository::class, |
||
| 16 | \hiqdev\php\billing\customer\Customer::class => \hiqdev\billing\hiapi\customer\CustomerRepository::class, |
||
| 17 | \hiqdev\php\billing\target\Target::class => \hiqdev\billing\hiapi\target\TargetRepository::class, |
||
| 18 | \hiqdev\php\billing\plan\PlanInterface::class => \hiqdev\billing\hiapi\plan\PlanRepository::class, |
||
| 19 | \hiqdev\php\billing\plan\Plan::class => \hiqdev\billing\hiapi\plan\PlanRepository::class, |
||
| 20 | \hiqdev\php\billing\price\PriceInterface::class => \hiqdev\billing\hiapi\price\PriceRepository::class, |
||
| 21 | \hiqdev\php\billing\charge\Charge::class => \hiqdev\billing\hiapi\charge\ChargeRepository::class, |
||
| 22 | \hiqdev\php\billing\charge\ChargeInterface::class => \hiqdev\billing\hiapi\charge\ChargeRepository::class, |
||
| 23 | \hiqdev\php\billing\action\Action::class => \hiqdev\billing\hiapi\action\ActionRepository::class, |
||
| 24 | \hiqdev\php\billing\sale\Sale::class => \hiqdev\billing\hiapi\sale\SaleRepository::class, |
||
| 25 | \DateTimeImmutable::class => \hiqdev\billing\hiapi\vo\DateTimeImmutableRepository::class, |
||
| 26 | ], |
||
| 27 | ], |
||
| 28 | \hiqdev\yii\DataMapper\hydrator\ConfigurableAggregateHydrator::class => [ |
||
| 29 | 'hydrators' => [ |
||
| 30 | \hiqdev\php\billing\customer\Customer::class => \hiqdev\billing\hiapi\customer\CustomerHydrator::class, |
||
| 31 | \hiqdev\php\billing\formula\FormulaInterface::class => \hiqdev\billing\hiapi\formula\FormulaHydrator::class, |
||
| 32 | \hiqdev\php\billing\action\Action::class => \hiqdev\billing\hiapi\action\ActionHydrator::class, |
||
| 33 | \hiqdev\php\billing\action\ActionState::class => \hiqdev\billing\hiapi\action\ActionStateHydrator::class, |
||
| 34 | \hiqdev\php\billing\charge\Charge::class => \hiqdev\billing\hiapi\charge\ChargeHydrator::class, |
||
| 35 | \hiqdev\php\billing\charge\ChargeInterface::class => \hiqdev\billing\hiapi\charge\ChargeHydrator::class, |
||
| 36 | \hiqdev\php\billing\charge\ChargeState::class => \hiqdev\billing\hiapi\charge\ChargeStateHydrator::class, |
||
| 37 | \hiqdev\php\billing\bill\Bill::class => \hiqdev\billing\hiapi\bill\BillHydrator::class, |
||
| 38 | \hiqdev\php\billing\bill\BillState::class => \hiqdev\billing\hiapi\bill\BillStateHydrator::class, |
||
| 39 | \hiqdev\php\billing\target\Target::class => \hiqdev\billing\hiapi\target\TargetHydrator::class, |
||
| 40 | \hiqdev\php\billing\target\TargetCollection::class => \hiqdev\billing\hiapi\target\TargetHydrator::class, |
||
| 41 | \hiqdev\php\billing\type\Type::class => \hiqdev\billing\hiapi\type\TypeHydrator::class, |
||
| 42 | \hiqdev\php\billing\plan\Plan::class => \hiqdev\billing\hiapi\plan\PlanHydrator::class, |
||
| 43 | \hiqdev\php\billing\plan\PlanInterface::class => \hiqdev\billing\hiapi\plan\PlanHydrator::class, |
||
| 44 | \hiqdev\php\billing\price\PriceInterface::class => \hiqdev\billing\hiapi\price\PriceHydrator::class, |
||
| 45 | \hiqdev\php\billing\price\EnumPrice::class => \hiqdev\billing\hiapi\price\EnumPriceHydrator::class, |
||
| 46 | \hiqdev\php\billing\price\SinglePrice::class => \hiqdev\billing\hiapi\price\SinglePriceHydrator::class, |
||
| 47 | \hiqdev\php\billing\sale\Sale::class => \hiqdev\billing\hiapi\sale\SaleHydrator::class, |
||
| 48 | \hiqdev\php\units\Quantity::class => \hiqdev\billing\hiapi\vo\QuantityHydrator::class, |
||
| 49 | \Money\Money::class => \hiqdev\billing\hiapi\vo\MoneyHydrator::class, |
||
| 50 | ], |
||
| 51 | ], |
||
| 52 | \hiqdev\php\billing\formula\FormulaEngineInterface::class => [ |
||
| 53 | '__class' => \hiqdev\php\billing\formula\FormulaEngine::class, |
||
| 54 | ], |
||
| 55 | \hiqdev\php\billing\bill\BillRepositoryInterface::class => [ |
||
| 56 | '__class' => \hiqdev\billing\hiapi\bill\BillRepository::class, |
||
| 57 | ], |
||
| 58 | \hiqdev\php\billing\plan\PlanRepositoryInterface::class => [ |
||
| 59 | '__class' => \hiqdev\billing\hiapi\plan\PlanRepository::class, |
||
| 60 | ], |
||
| 61 | \hiqdev\php\billing\sale\SaleRepositoryInterface::class => [ |
||
| 62 | '__class' => \hiqdev\billing\hiapi\sale\SaleRepository::class, |
||
| 63 | ], |
||
| 64 | \hiqdev\php\billing\order\CalculatorInterface::class => [ |
||
| 65 | '__class' => \hiqdev\php\billing\order\Calculator::class, |
||
| 66 | ], |
||
| 67 | \hiqdev\php\billing\tools\AggregatorInterface::class => [ |
||
| 68 | '__class' => \hiqdev\php\billing\tools\Aggregator::class, |
||
| 69 | ], |
||
| 70 | \hiqdev\php\billing\tools\MergerInterface::class => [ |
||
| 71 | '__class' => \hiqdev\billing\hiapi\tools\Merger::class, |
||
| 72 | ], |
||
| 73 | \hiqdev\billing\hiapi\tools\Merger::class => [ |
||
| 74 | '__construct()' => [ |
||
| 75 | \hiqdev\yii\compat\yii::referenceTo(\hiqdev\php\billing\tools\Merger::class), |
||
| 76 | ], |
||
| 77 | ], |
||
| 78 | \hiqdev\php\billing\charge\GeneralizerInterface::class => [ |
||
| 79 | '__class' => \hiqdev\billing\hiapi\charge\Generalizer::class, |
||
| 80 | ], |
||
| 81 | \hiqdev\php\billing\type\TypeFactoryInterface::class => [ |
||
| 82 | '__class' => \hiqdev\billing\hiapi\type\TypeFactory::class, |
||
| 83 | ], |
||
| 84 | \hiqdev\php\billing\target\TargetFactoryInterface::class => [ |
||
| 85 | '__class' => \hiqdev\billing\hiapi\target\TargetFactory::class, |
||
| 86 | ], |
||
| 87 | \hiqdev\php\billing\bill\BillFactoryInterface::class => [ |
||
| 88 | '__class' => \hiqdev\php\billing\bill\BillFactory::class, |
||
| 89 | ], |
||
| 90 | \hiqdev\php\billing\customer\CustomerFactoryInterface::class => [ |
||
| 91 | '__class' => \hiqdev\php\billing\customer\CustomerFactory::class, |
||
| 92 | ], |
||
| 93 | \hiqdev\php\billing\plan\PlanFactoryInterface::class => [ |
||
| 94 | '__class' => \hiqdev\php\billing\plan\PlanFactory::class, |
||
| 95 | ], |
||
| 96 | \hiqdev\php\billing\price\PriceFactoryInterface::class => [ |
||
| 97 | '__class' => \hiqdev\billing\hiapi\price\PriceFactory::class, |
||
| 98 | '__construct()' => [ |
||
| 99 | $params['billing-hiapi.price.types'], |
||
| 100 | $params['billing-hiapi.price.defaultClass'], |
||
| 101 | ], |
||
| 102 | ], |
||
| 103 | \hiqdev\php\billing\sale\SaleFactoryInterface::class => [ |
||
| 104 | '__class' => \hiqdev\php\billing\sale\SaleFactory::class, |
||
| 105 | ], |
||
| 106 | \hiqdev\billing\hiapi\type\TypeSemantics::class, |
||
| 107 | |||
| 108 | \hiapi\Core\Endpoint\EndpointRepository::class => [ |
||
| 109 | '__construct()' => [ |
||
| 110 | 'endpoints' => [ |
||
| 111 | 'PlansSearch' => \hiqdev\billing\hiapi\plan\Search\PlanBulkSearch::class, |
||
| 112 | |||
| 113 | 'SalesSearch' => \hiqdev\billing\hiapi\sale\Search\SaleBulkSearch::class, |
||
| 114 | 'SaleCreate' => \hiqdev\billing\hiapi\sale\Create\SaleCreate::class, |
||
| 115 | 'SaleClose' => \hiqdev\billing\hiapi\sale\Close\SaleClose::class, |
||
| 116 | |||
| 117 | 'MethodsSearch' => \hiqdev\billing\hiapi\method\Search\MethodBulkSearch::class, |
||
| 118 | 'MethodCreate' => \hiqdev\billing\hiapi\method\Create\MethodCreate::class, |
||
| 119 | 'MethodDelete' => \hiqdev\billing\hiapi\method\Delete\MethodDelete::class, |
||
| 120 | 'MethodVerify' => \hiqdev\billing\hiapi\method\Verify\MethodVerify::class, |
||
| 121 | |||
| 122 | 'ProvidersSearch' => \hiqdev\billing\hiapi\provider\Search\ProviderBulkSearch::class, |
||
| 123 | 'ProviderPrepare' => \hiqdev\billing\hiapi\provider\Prepare\ProviderPrepare::class, |
||
| 124 | 'ProvidersPrepare' => \hiqdev\billing\hiapi\provider\Prepare\ProviderBulkPrepare::class, |
||
| 125 | |||
| 126 | 'BillsSearch' => \hiqdev\billing\hiapi\bill\Search\BillBulkSearch::class, |
||
| 127 | |||
| 128 | 'ActionCalculate' => \hiqdev\billing\hiapi\action\Calculate\ActionCalculate::class, |
||
| 129 | 'ActionsCalculate' => \hiqdev\billing\hiapi\action\Calculate\ActionBulkCalculate::class, |
||
| 130 | |||
| 131 | 'CleanForTests' => \hiqdev\billing\hiapi\tools\CleanForTests\Builder::class, |
||
| 132 | ], |
||
| 133 | ], |
||
| 134 | ], |
||
| 135 | ]; |
||
| 136 | |||
| 137 | return class_exists(\Yiisoft\Factory\Definitions\Reference::class) |
||
|
0 ignored issues
–
show
|
|||
| 138 | ? $singletons |
||
| 139 | : ['container' => ['singletons' => $singletons]] |
||
| 140 | ; |
||
| 141 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths