PluginProbe
seQura / 4.1.1
seQura v4.1.1
4.3.4 4.3.3 4.3.2 4.3.1 trunk 2.0.0 2.0.10 2.0.11 2.0.12 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.2 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 4.0.0 All 30 releases
← All changes | src/class-bootstrap.php +4 -129 trunk4.1.1 View file →
@@ -80,11 +80,9 @@
80 80 use SeQura\WC\Core\Implementation\BusinessLogic\Webhook\Services\Shop_Order_Service;
81 81 use SeQura\WC\Core\Implementation\Infrastructure\Logger\Interfaces\Default_Logger_Adapter;
82 82 use SeQura\WC\Core\Implementation\Infrastructure\Logger\Interfaces\Shop_Logger_Adapter;
83 83 use SeQura\WC\Core\Implementation\BusinessLogic\Domain\Integration\OrderReport\Order_Report_Service;
84 -use SeQura\WC\Repositories\Cache_Repository;
85 84 use SeQura\WC\Repositories\Entity_Repository;
86 -use SeQura\WC\Repositories\Interface_Cache_Repository;
87 85 use SeQura\WC\Repositories\Migrations\Migration_Install_300;
88 86 use SeQura\WC\Repositories\Migrations\Migration_Install_320;
89 87 use SeQura\WC\Repositories\Queue_Item_Repository;
90 88 use SeQura\WC\Repositories\Repository;
@@ -130,10 +128,8 @@
130 128 use SeQura\WC\Core\Implementation\BusinessLogic\Domain\Integration\Product\Product_Service as Core_Product_Service;
131 129 use SeQura\WC\Core\Implementation\BusinessLogic\Domain\Integration\PromotionalWidgets\Mini_Widget_Messages_Provider;
132 130 use SeQura\WC\Core\Implementation\BusinessLogic\Domain\Integration\PromotionalWidgets\Widget_Configurator;
133 131 use SeQura\WC\Repositories\Migrations\Migration_Install_400;
134 -use SeQura\WC\Repositories\Migrations\Migration_Install_420;
135 -use SeQura\WC\Repositories\Migrations\Migration_Install_430;
136 132 use SeQura\WC\Services\Order\Current_Order_Provider;
137 133 use SeQura\WC\Services\Order\Interface_Current_Order_Provider;
138 134 use SeQura\WC\Services\Platform\Interface_Platform_Provider;
139 135 use SeQura\WC\Services\Platform\Platform_Provider;
@@ -139,14 +135,10 @@
139 135 use SeQura\WC\Services\Platform\Platform_Provider;
140 136 use SeQura\WC\Services\Widgets\Interface_Widgets_Service;
141 137 use SeQura\WC\Services\Widgets\Widgets_Service;
142 138 use SeQura\Core\BusinessLogic\Domain\Integration\Store\StoreIdProvider;
143 -use SeQura\Core\BusinessLogic\Domain\Integration\StoreIntegration\StoreIntegrationServiceInterface;
144 -use SeQura\Core\BusinessLogic\Domain\Stores\Services\StoreService;
145 139 use SeQura\Core\Infrastructure\Configuration\ConfigurationManager;
146 -use SeQura\WC\Controllers\Rest\Store_Integration_REST_Controller;
147 140 use SeQura\WC\Core\Extension\BusinessLogic\Domain\Integration\Store\Store_Id_Provider;
148 -use SeQura\WC\Core\Implementation\BusinessLogic\Domain\Integration\StoreIntegration\Store_Integration_Service;
149 141 use SeQura\WC\Services\Order\Builder\Interface_Order_Address_Builder;
150 142 use SeQura\WC\Services\Order\Builder\Order_Address_Builder;
151 143 use SeQura\WC\Services\Order\Builder\Interface_Order_Customer_Builder;
152 144 use SeQura\WC\Services\Order\Builder\Interface_Order_Delivery_Method_Builder;
@@ -153,21 +145,8 @@
153 145 use SeQura\WC\Services\Order\Builder\Order_Customer_Builder;
154 146 use SeQura\WC\Services\Order\Builder\Order_Delivery_Method_Builder;
155 147 use SeQura\WC\Services\Service\Interface_Settings_Service;
156 148 use SeQura\WC\Services\Service\Settings_Service;
157 -use SeQura\Core\BusinessLogic\Domain\Integration\StoreInfo\StoreInfoServiceInterface;
158 -use SeQura\WC\Core\Implementation\BusinessLogic\Domain\Integration\StoreInfo\Store_Info_Service;
159 -use SeQura\Core\BusinessLogic\DataAccess\AdvancedSettings\Entities\AdvancedSettings;
160 -use SeQura\Core\BusinessLogic\Domain\AdvancedSettings\Services\AdvancedSettingsService;
161 -use SeQura\Core\BusinessLogic\Domain\Integration\Log\LogServiceInterface;
162 -use SeQura\WC\Core\Implementation\BusinessLogic\Domain\Integration\Log\Log_Service;
163 -use SeQura\Core\BusinessLogic\DataAccess\Affiliate\Entities\AffiliateSettings;
164 -use SeQura\Core\BusinessLogic\DataAccess\BannerSettings\Entities\BannerSettings;
165 -use SeQura\Core\BusinessLogic\DataAccess\ExpressCheckout\Entities\ExpressCheckoutSettings;
166 -use SeQura\Core\BusinessLogic\Domain\Integration\Banner\BannerServiceInterface;
167 -use SeQura\WC\Core\Implementation\BusinessLogic\Domain\Integration\Banner\Banner_Service;
168 -use SeQura\Core\BusinessLogic\Domain\Integration\ExpressCheckout\ExpressCheckoutIntegrationInterface;
169 -use SeQura\WC\Core\Implementation\BusinessLogic\Domain\Integration\ExpressCheckout\Express_Checkout_Integration_Service;
170 149
171 150 /**
172 151 * Implementation for the core bootstrap class.
173 152 */
@@ -201,9 +180,8 @@
201 180 Reg::getService( General_Settings_REST_Controller::class ),
202 181 Reg::getService( Onboarding_REST_Controller::class ),
203 182 Reg::getService( Payment_REST_Controller::class ),
204 183 Reg::getService( Log_REST_Controller::class ),
205 - Reg::getService( Store_Integration_REST_Controller::class ),
206 184 Reg::getService( Interface_Product_Controller::class ),
207 185 Reg::getService( Interface_Async_Process_Controller::class ),
208 186 Reg::getService( Interface_Order_Controller::class )
209 187 );
@@ -524,18 +502,8 @@
524 502 }
525 503 return self::$cache[ DefaultLoggerAdapter::CLASS_NAME ];
526 504 }
527 505 );
528 -
529 - Reg::registerService(
530 - StoreIntegrationServiceInterface::class,
531 - static function () {
532 - if ( ! isset( self::$cache[ StoreIntegrationServiceInterface::class ] ) ) {
533 - self::$cache[ StoreIntegrationServiceInterface::class ] = new Store_Integration_Service();
534 - }
535 - return self::$cache[ StoreIntegrationServiceInterface::class ];
536 - }
537 - );
538 506
539 507 // Plugin services.
540 508 Reg::registerService(
541 509 Interface_Log_File::class,
@@ -587,15 +555,8 @@
587 555 * @var StoreContext $store_context
588 556 */
589 557 $store_context = Reg::getService( StoreContext::class );
590 558
591 - /**
592 - * Cache repository.
593 - *
594 - * @var Interface_Cache_Repository $cache_repository
595 - */
596 - $cache_repository = Reg::getService( Interface_Cache_Repository::class );
597 -
598 559 self::$cache[ Interface_Migration_Manager::class ] = new Migration_Manager(
599 560 self::get_constants()->get_plugin_basename(),
600 561 $configuration,
601 562 self::get_constants()->get_plugin_data()['Version'],
@@ -601,9 +562,8 @@
601 562 self::get_constants()->get_plugin_data()['Version'],
602 563 array(
603 564 new Migration_Install_300(
604 565 $wpdb,
605 - $cache_repository,
606 566 $order_repository,
607 567 $entity_repository,
608 568 $queue_item_repository,
609 569 $store_context
@@ -609,9 +569,8 @@
609 569 $store_context
610 570 ),
611 571 new Migration_Install_320(
612 572 $wpdb,
613 - $cache_repository,
614 573 self::get_constants()->get_hook_add_order_indexes(),
615 574 $entity_repository,
616 575 $queue_item_repository
617 576 ),
@@ -616,23 +575,11 @@
616 575 $queue_item_repository
617 576 ),
618 577 new Migration_Install_400(
619 578 $wpdb,
620 - $cache_repository,
621 579 $encryptor,
622 - $store_context
580 + $store_context,
623 581 ),
624 - new Migration_Install_420(
625 - $wpdb,
626 - $cache_repository,
627 - Reg::getService( AdvancedSettingsService::class ),
628 - Reg::getService( Order_Status_Settings_Service::class )
629 - ),
630 - new Migration_Install_430(
631 - $wpdb,
632 - $cache_repository,
633 - Reg::getService( StoreService::class )
634 - ),
635 582 )
636 583 );
637 584 }
638 585 return self::$cache[ Interface_Migration_Manager::class ];
@@ -790,9 +737,9 @@
790 737 Reg::registerService(
791 738 ProductServiceInterface::class,
792 739 static function () {
793 740 if ( ! isset( self::$cache[ ProductServiceInterface::class ] ) ) {
794 - self::$cache[ ProductServiceInterface::class ] = new Core_Product_Service( Reg::getService( \wpdb::class ) );
741 + self::$cache[ ProductServiceInterface::class ] = new Core_Product_Service();
795 742 }
796 743 return self::$cache[ ProductServiceInterface::class ];
797 744 }
798 745 );
@@ -914,49 +861,8 @@
914 861 }
915 862 return self::$cache[ Interface_Order_Delivery_Method_Builder::class ];
916 863 }
917 864 );
918 - Reg::registerService(
919 - StoreInfoServiceInterface::class,
920 - static function () {
921 - if ( ! isset( self::$cache[ StoreInfoServiceInterface::class ] ) ) {
922 - self::$cache[ StoreInfoServiceInterface::class ] = new Store_Info_Service(
923 - Reg::getService( Interface_Platform_Provider::class )
924 - );
925 - }
926 - return self::$cache[ StoreInfoServiceInterface::class ];
927 - }
928 - );
929 - Reg::registerService(
930 - LogServiceInterface::class,
931 - static function () {
932 - if ( ! isset( self::$cache[ LogServiceInterface::class ] ) ) {
933 - self::$cache[ LogServiceInterface::class ] = new Log_Service(
934 - Reg::getService( Interface_Logger_Service::class ),
935 - Reg::getService( StoreContext::class )
936 - );
937 - }
938 - return self::$cache[ LogServiceInterface::class ];
939 - }
940 - );
941 - Reg::registerService(
942 - BannerServiceInterface::class,
943 - static function () {
944 - if ( ! isset( self::$cache[ BannerServiceInterface::class ] ) ) {
945 - self::$cache[ BannerServiceInterface::class ] = new Banner_Service();
946 - }
947 - return self::$cache[ BannerServiceInterface::class ];
948 - }
949 - );
950 - Reg::registerService(
951 - ExpressCheckoutIntegrationInterface::class,
952 - static function () {
953 - if ( ! isset( self::$cache[ ExpressCheckoutIntegrationInterface::class ] ) ) {
954 - self::$cache[ ExpressCheckoutIntegrationInterface::class ] = new Express_Checkout_Integration_Service();
955 - }
956 - return self::$cache[ ExpressCheckoutIntegrationInterface::class ];
957 - }
958 - );
959 865 }
960 866
961 867 /**
962 868 * Initializes repositories.
@@ -973,18 +879,8 @@
973 879 return self::$cache[ \wpdb::class ];
974 880 }
975 881 );
976 882
977 - Reg::registerService(
978 - Interface_Cache_Repository::class,
979 - static function () {
980 - if ( ! isset( self::$cache[ Interface_Cache_Repository::class ] ) ) {
981 - self::$cache[ Interface_Cache_Repository::class ] = new Cache_Repository();
982 - }
983 - return self::$cache[ Interface_Cache_Repository::class ];
984 - }
985 - );
986 -
987 883 parent::initRepositories();
988 884
989 885 RepositoryRegistry::registerRepository( ConfigEntity::class, Entity_Repository::class );
990 886 RepositoryRegistry::registerRepository( QueueItem::class, Queue_Item_Repository::class );
@@ -1000,12 +896,8 @@
1000 896 RepositoryRegistry::registerRepository( TransactionLog::class, Entity_Repository::class );
1001 897 RepositoryRegistry::registerRepository( PaymentMethod::class, Entity_Repository::class );
1002 898 RepositoryRegistry::registerRepository( Credentials::class, Entity_Repository::class );
1003 899 RepositoryRegistry::registerRepository( Deployment::class, Entity_Repository::class );
1004 - RepositoryRegistry::registerRepository( AdvancedSettings::class, Entity_Repository::class );
1005 - RepositoryRegistry::registerRepository( AffiliateSettings::class, Entity_Repository::class );
1006 - RepositoryRegistry::registerRepository( BannerSettings::class, Entity_Repository::class );
1007 - RepositoryRegistry::registerRepository( ExpressCheckoutSettings::class, Entity_Repository::class );
1008 900 }
1009 901
1010 902 /**
1011 903 * Initializes controllers.
@@ -1113,10 +1005,9 @@
1113 1005 if ( ! isset( self::$cache[ Interface_Order_Controller::class ] ) ) {
1114 1006 self::$cache[ Interface_Order_Controller::class ] = new Order_Controller(
1115 1007 Reg::getService( Interface_Logger_Service::class ),
1116 1008 self::get_constants()->get_plugin_templates_path(),
1117 - Reg::getService( Interface_Order_Service::class ),
1118 - Reg::getService( Interface_Cart_Service::class )
1009 + Reg::getService( Interface_Order_Service::class )
1119 1010 );
1120 1011 }
1121 1012 return self::$cache[ Interface_Order_Controller::class ];
1122 1013 }
@@ -1167,28 +1058,12 @@
1167 1058 if ( ! isset( self::$cache[ Log_REST_Controller::class ] ) ) {
1168 1059 self::$cache[ Log_REST_Controller::class ] = new Log_REST_Controller(
1169 1060 self::get_constants()->get_plugin_rest_namespace(),
1170 1061 Reg::getService( Interface_Logger_Service::class ),
1171 - Reg::getService( RegexProvider::class ),
1172 - Reg::getService( AdvancedSettingsService::class )
1062 + Reg::getService( RegexProvider::class )
1173 1063 );
1174 1064 }
1175 1065 return self::$cache[ Log_REST_Controller::class ];
1176 - }
1177 - );
1178 - Reg::registerService(
1179 - Store_Integration_REST_Controller::class,
1180 - static function () {
1181 - if ( ! isset( self::$cache[ Store_Integration_REST_Controller::class ] ) ) {
1182 - self::$cache[ Store_Integration_REST_Controller::class ] = new Store_Integration_REST_Controller(
1183 - self::get_constants()->get_plugin_rest_namespace(),
1184 - Reg::getService( Interface_Logger_Service::class ),
1185 - Reg::getService( RegexProvider::class ),
1186 - Reg::getService( StoreIntegrationServiceInterface::class ),
1187 - Reg::getService( StoreContext::class )
1188 - );
1189 - }
1190 - return self::$cache[ Store_Integration_REST_Controller::class ];
1191 1066 }
1192 1067 );
1193 1068 }
1194 1069 }