/** * @param string $key * * @return array */ private function initServiceParams($key) { $initedParams = array(); $params = $this->services->getParams($key); if (!empty($params)) { foreach ($params as $param) { $initedParams[] = $this->get($param); } } return $initedParams; }
/** * @param Services $services * * @return mixed */ public function addServices(Services $services) { $services->setDetails('jigoshop.admin.settings.general', 'Jigoshop\\Admin\\Settings\\GeneralTab', array('wpal', 'jigoshop.options', 'jigoshop.messages')); $services->setDetails('jigoshop.admin.settings.shopping', 'Jigoshop\\Admin\\Settings\\ShoppingTab', array('wpal', 'jigoshop.options', 'jigoshop.messages')); $services->setDetails('jigoshop.admin.settings.products', 'Jigoshop\\Admin\\Settings\\ProductsTab', array('wpal', 'jigoshop.options', 'jigoshop.messages')); $services->setDetails('jigoshop.admin.settings.taxes', 'Jigoshop\\Admin\\Settings\\TaxesTab', array('wpal', 'jigoshop.options', 'jigoshop.service.tax', 'jigoshop.messages')); $services->setDetails('jigoshop.admin.settings.shipping', 'Jigoshop\\Admin\\Settings\\ShippingTab', array('jigoshop.options', 'jigoshop.service.shipping')); $services->setDetails('jigoshop.admin.settings.payment', 'Jigoshop\\Admin\\Settings\\PaymentTab', array('jigoshop.options', 'jigoshop.service.payment')); $services->setDetails('jigoshop.admin.settings.advanced', 'Jigoshop\\Admin\\Settings\\AdvancedTab', array('wpal', 'di', 'jigoshop.options', 'jigoshop.messages')); }
/** * @param Services $services * * @return mixed */ public function addServices(Services $services) { $services->setDetails('jigoshop.admin.migration.options', 'Jigoshop\\Admin\\Migration\\Options', array('wpal', 'jigoshop.options', 'jigoshop.service.tax')); $services->setDetails('jigoshop.admin.migration.coupons', 'Jigoshop\\Admin\\Migration\\Coupons', array('wpal', 'jigoshop.options')); $services->setDetails('jigoshop.admin.migration.emails', 'Jigoshop\\Admin\\Migration\\Emails', array('wpal', 'jigoshop.options')); $services->setDetails('jigoshop.admin.migration.products', 'Jigoshop\\Admin\\Migration\\Products', array('wpal', 'jigoshop.options', 'jigoshop.service.product', 'jigoshop.service.tax')); $services->setDetails('jigoshop.admin.migration.orders', 'Jigoshop\\Admin\\Migration\\Orders', array('wpal', 'jigoshop.options', 'jigoshop.messages', 'jigoshop.service.order', 'jigoshop.service.shipping', 'jigoshop.service.payment', 'jigoshop.service.product')); }
/** * @param Services $services * * @return mixed */ public function addServices(Services $services) { $services->setDetails('jigoshop.payment.cheque', 'Jigoshop\\Payment\\Cheque', array('wpal', 'jigoshop.options', 'jigoshop.service.order')); $services->setDetails('jigoshop.payment.on_delivery', 'Jigoshop\\Payment\\OnDelivery', array('wpal', 'jigoshop.options', 'jigoshop.service.order')); $services->setDetails('jigoshop.payment.paypal', 'Jigoshop\\Payment\\PayPal', array('wpal', 'di', 'jigoshop.options', 'jigoshop.messages')); $services->setDetails('jigoshop.api.paypal', 'Jigoshop\\Payment\\PayPal', array('wpal', 'di', 'jigoshop.options', 'jigoshop.messages')); $services->setDetails('jigoshop.payment.bank_transfer', 'Jigoshop\\Payment\\BankTransfer', array('wpal', 'jigoshop.options', 'jigoshop.service.order')); }
/** * @param Services $services * * @return mixed */ public function addServices(Services $services) { $services->setDetails('jigoshop.service.order', 'Jigoshop\\Service\\OrderService', array()); $services->setDetails('jigoshop.service.product', 'Jigoshop\\Service\\ProductService', array()); $services->setDetails('jigoshop.service.product.variable', 'Jigoshop\\Service\\Product\\VariableService', array()); $services->setDetails('jigoshop.service.tax', 'Jigoshop\\Service\\TaxService', array()); $services->setDetails('jigoshop.service.customer', 'Jigoshop\\Service\\CustomerService', array()); $services->setDetails('jigoshop.service.shipping', 'Jigoshop\\Service\\ShippingService', array()); $services->setDetails('jigoshop.service.payment', 'Jigoshop\\Service\\PaymentService', array()); $services->setDetails('jigoshop.service.session', 'Jigoshop\\Service\\SessionService', array()); $services->setDetails('jigoshop.service.cart', 'Jigoshop\\Service\\CartService', array('wpal', 'jigoshop.options', 'jigoshop.service.customer', 'jigoshop.service.product', 'jigoshop.service.shipping', 'jigoshop.service.session', 'jigoshop.service.payment', 'jigoshop.factory.order')); $services->setDetails('jigoshop.service.email', 'Jigoshop\\Service\\EmailService', array('wpal', 'jigoshop.options', 'jigoshop.factory.email')); $services->setDetails('jigoshop.service.coupon', 'Jigoshop\\Service\\CouponService', array('wpal', 'jigoshop.options', 'jigoshop.factory.coupon')); $services->setLazyStaus('jigoshop.service.order', true); $services->setLazyStaus('jigoshop.service.product', true); $services->setLazyStaus('jigoshop.service.product.variable', true); $services->setLazyStaus('jigoshop.service.tax', true); $services->setLazyStaus('jigoshop.service.customer', true); $services->setLazyStaus('jigoshop.service.shipping', true); $services->setLazyStaus('jigoshop.service.payment', true); $services->setLazyStaus('jigoshop.service.session', true); $services->setLazyStaus('jigoshop.service.cart', true); $services->setLazyStaus('jigoshop.service.coupon', true); }
/** * @param Services $services * * @return mixed */ public function addServices(Services $services) { $services->setDetails('jigoshop.admin.page_resolver', 'Jigoshop\\Admin\\PageResolver', array('wpal', 'jigoshop.admin.pages')); $services->setDetails('jigoshop.admin.page.orders', 'Jigoshop\\Admin\\Page\\Orders', array('wpal', 'jigoshop.options', 'jigoshop.service.order')); $services->setDetails('jigoshop.admin.page.order', 'Jigoshop\\Admin\\Page\\Order', array('wpal', 'jigoshop.options', 'jigoshop.service.order', 'jigoshop.service.product', 'jigoshop.service.customer', 'jigoshop.service.shipping')); $services->setDetails('jigoshop.admin.page.products', 'Jigoshop\\Admin\\Page\\Products', array('wpal', 'jigoshop.options', 'jigoshop.post_type.product', 'jigoshop.service.product')); $services->setDetails('jigoshop.admin.page.product', 'Jigoshop\\Admin\\Page\\Product', array('wpal', 'jigoshop.options', 'jigoshop.post_type.product', 'jigoshop.service.product')); $services->setDetails('jigoshop.admin.page.email', 'Jigoshop\\Admin\\Page\\Email', array('wpal', 'jigoshop.options', 'jigoshop.service.email')); $services->setDetails('jigoshop.admin.page.coupons', 'Jigoshop\\Admin\\Page\\Coupons', array('wpal', 'jigoshop.options', 'jigoshop.service.coupon')); $services->setDetails('jigoshop.admin.page.coupon', 'Jigoshop\\Admin\\Page\\Coupon', array('wpal', 'jigoshop.options', 'jigoshop.service.coupon', 'jigoshop.service.payment')); $services->setDetails('jigoshop.admin.page.product_categories', 'Jigoshop\\Admin\\Page\\ProductCategories', array('wpal')); $services->setDetails('jigoshop.admin.page.product_tags', 'Jigoshop\\Admin\\Page\\ProductTags', array('wpal')); }
/** * @param Services $services * * @return mixed */ public function addServices(Services $services) { $services->setDetails('jigoshop.admin', 'Jigoshop\\Admin', array('wpal', 'jigoshop.admin.dashboard', 'jigoshop.admin.permalinks')); $services->setDetails('jigoshop.admin.pages', 'Jigoshop\\Admin\\Pages', array('wpal', 'jigoshop.options')); $services->setDetails('jigoshop.admin.permalinks', 'Jigoshop\\Admin\\Permalinks', array('wpal', 'jigoshop.options')); $services->setDetails('jigoshop.admin.dashboard', 'Jigoshop\\Admin\\Dashboard', array('wpal', 'jigoshop.options', 'jigoshop.service.order', 'jigoshop.service.product')); $services->setDetails('jigoshop.admin.reports', 'Jigoshop\\Admin\\Reports', array('wpal', 'jigoshop.messages', 'jigoshop.service.order')); $services->setDetails('jigoshop.admin.settings', 'Jigoshop\\Admin\\Settings', array('wpal', 'jigoshop.options', 'jigoshop.messages')); $services->setDetails('jigoshop.admin.system_info', 'Jigoshop\\Admin\\SystemInfo', array('wpal')); $services->setDetails('jigoshop.admin.licences', 'Jigoshop\\Admin\\Licences', array('wpal', 'jigoshop.options', 'jigoshop.messages')); $services->setDetails('jigoshop.admin.migration', 'Jigoshop\\Admin\\Migration', array('wpal', 'jigoshop.options', 'jigoshop.messages')); $services->setDetails('jigoshop.admin.product.attributes', 'Jigoshop\\Admin\\Product\\Attributes', array('wpal', 'jigoshop.messages', 'jigoshop.service.product')); }
/** * @param Services $services * * @return mixed */ public function addServices(Services $services) { $services->setDetails('jigoshop.admin.system_info.system_status', 'Jigoshop\\Admin\\SystemInfo\\SystemStatusTab', array('wpal', 'jigoshop.options')); $services->setDetails('jigoshop.admin.system_info.tools', 'Jigoshop\\Admin\\SystemInfo\\ToolsTab', array('wpal', 'jigoshop.options')); $services->setDetails('jigoshop.admin.system_info.logs', 'Jigoshop\\Admin\\SystemInfo\\LogsTab', array()); }
/** * @param Services $services * * @return mixed */ public function addServices(Services $services) { $services->setDetails('wpal', 'WPAL\\Wordpress', array()); $services->setDetails('parsedown', 'Parsedown', array()); $services->setDetails('jigoshop.product_type.simple', 'Jigoshop\\Core\\Types\\Product\\Simple', array()); $services->setDetails('jigoshop.product_type.virtual', 'Jigoshop\\Core\\Types\\Product\\Virtual', array()); $services->setDetails('jigoshop.product_type.variable.initializer', 'Jigoshop\\Core\\Installer\\Product\\Variable', array()); $services->setDetails('jigoshop.product_type.external', 'Jigoshop\\Core\\Types\\Product\\External', array()); $services->setDetails('jigoshop.core', 'Jigoshop\\Core', array('wpal', 'jigoshop.options', 'jigoshop.messages', 'jigoshop.template', 'jigoshop.widget')); $services->setDetails('jigoshop.integration', 'Jigoshop\\Integration', array('di')); $services->setDetails('jigoshop.widget', 'Jigoshop\\Widget', array('di', 'wpal')); $services->setDetails('jigoshop.installer', 'Jigoshop\\Core\\Installer', array('wpal', 'jigoshop.options', 'jigoshop.cron', 'jigoshop.service.email')); $services->setDetails('jigoshop.options', 'Jigoshop\\Core\\Options', array('wpal')); $services->setDetails('jigoshop.cron', 'Jigoshop\\Core\\Cron', array('wpal', 'jigoshop.options', 'jigoshop.service.order', 'jigoshop.service.email')); $services->setDetails('jigoshop.emails', 'Jigoshop\\Core\\Emails', array('wpal', 'jigoshop.options', 'jigoshop.service.email')); $services->setDetails('jigoshop.api_deprecated', 'Jigoshop\\ApiDeprecated', array('wpal', 'di')); $services->setDetails('jigoshop.api', 'Jigoshop\\Api', array('wpal', 'jigoshop.options', 'di')); $services->setDetails('jigoshop.messages', 'Jigoshop\\Core\\Messages', array('wpal', 'jigoshop.service.session')); $services->setDetails('jigoshop.types', 'Jigoshop\\Core\\Types', array('wpal')); $services->setDetails('jigoshop.roles.initializer', 'Jigoshop\\Core\\Installer\\Roles', array()); $services->setDetails('jigoshop.template', 'Jigoshop\\Core\\Template', array('wpal', 'jigoshop.options')); $services->setDetails('jigoshop.permalinks', 'Jigoshop\\Core\\Permalinks', array('wpal', 'jigoshop.options')); $services->setDetails('jigoshop.post_type.product', 'Jigoshop\\Core\\Types\\Product', array('di', 'wpal', 'jigoshop.options', 'jigoshop.service.product')); $services->setDetails('jigoshop.post_type.email', 'Jigoshop\\Core\\Types\\Email', array('wpal')); $services->setDetails('jigoshop.post_type.coupon', 'Jigoshop\\Core\\Types\\Coupon', array('wpal', 'jigoshop.options')); $services->setDetails('jigoshop.post_type.order', 'Jigoshop\\Core\\Types\\Order', array('wpal')); $services->setDetails('jigoshop.taxonomy.product_category', 'Jigoshop\\Core\\Types\\ProductCategory', array('jigoshop.options')); $services->setDetails('jigoshop.taxonomy.product_tag', 'Jigoshop\\Core\\Types\\ProductTag', array('jigoshop.options')); $services->setDetails('jigoshop.product_type.variable', 'Jigoshop\\Core\\Types\\Product\\Variable', array('wpal', 'jigoshop.options', 'jigoshop.service.product', 'jigoshop.service.product.variable', 'jigoshop.factory.product.variable')); $services->setDetails('jigoshop.product_type.downloadable', 'Jigoshop\\Core\\Types\\Product\\Downloadable', array('wpal', 'jigoshop.options', 'jigoshop.messages')); $services->setDetails('jigoshop.product_type.downloadable.download_file', 'Jigoshop\\Api\\DownloadFile', array('wpal', 'jigoshop.options', 'jigoshop.messages', 'jigoshop.service.order')); }
/** * @param Services $services * * @return mixed */ public function addServices(Services $services) { $services->setDetails('jigoshop.admin.reports.sales', 'Jigoshop\\Admin\\Reports\\SalesTab', array('wpal', 'jigoshop.options')); $services->setDetails('jigoshop.admin.reports.customers', 'Jigoshop\\Admin\\Reports\\CustomersTab', array('wpal', 'jigoshop.options', 'jigoshop.service.order')); $services->setDetails('jigoshop.admin.reports.stock', 'Jigoshop\\Admin\\Reports\\StockTab', array('wpal', 'jigoshop.options')); }
/** * @param Services $services * * @return mixed */ public function addServices(Services $services) { $services->setDetails('jigoshop.shipping.flat_rate', 'Jigoshop\\Shipping\\FlatRate', array('wpal', 'jigoshop.options', 'jigoshop.service.cart', 'jigoshop.messages')); $services->setDetails('jigoshop.shipping.free_shipping', 'Jigoshop\\Shipping\\FreeShipping', array('wpal', 'jigoshop.options', 'jigoshop.service.cart', 'jigoshop.messages')); $services->setDetails('jigoshop.shipping.local_pickup', 'Jigoshop\\Shipping\\LocalPickup', array('wpal', 'jigoshop.options', 'jigoshop.service.cart')); }
/** * @param Services $services * * @return mixed */ public function addServices(Services $services) { $services->setDetails('jigoshop.query.interceptor', 'Jigoshop\\Query\\Interceptor', array('wpal', 'jigoshop.options')); $services->setDetails('jigoshop.frontend', 'Jigoshop\\Frontend', array()); $services->setDetails('jigoshop.frontend.page_resolver', 'Jigoshop\\Frontend\\PageResolver', array('wpal')); $services->setDetails('jigoshop.page.product_list', 'Jigoshop\\Frontend\\Page\\ProductList', array('wpal', 'jigoshop.options', 'jigoshop.service.product', 'jigoshop.service.cart', 'jigoshop.messages')); $services->setDetails('jigoshop.page.product_category_list', 'Jigoshop\\Frontend\\Page\\ProductCategoryList', array('wpal', 'jigoshop.options', 'jigoshop.service.product', 'jigoshop.service.cart', 'jigoshop.messages')); $services->setDetails('jigoshop.page.product_tag_list', 'Jigoshop\\Frontend\\Page\\ProductTagList', array('wpal', 'jigoshop.options', 'jigoshop.service.product', 'jigoshop.service.cart', 'jigoshop.messages')); $services->setDetails('jigoshop.page.product', 'Jigoshop\\Frontend\\Page\\Product', array('wpal', 'jigoshop.options', 'jigoshop.service.product', 'jigoshop.service.cart', 'jigoshop.messages')); $services->setDetails('jigoshop.page.cart', 'Jigoshop\\Frontend\\Page\\Cart', array('wpal', 'jigoshop.options', 'jigoshop.messages', 'jigoshop.service.cart', 'jigoshop.service.product', 'jigoshop.service.customer', 'jigoshop.service.order', 'jigoshop.service.shipping', 'jigoshop.service.coupon')); $services->setDetails('jigoshop.page.checkout', 'Jigoshop\\Frontend\\Page\\Checkout', array('wpal', 'jigoshop.options', 'jigoshop.messages', 'jigoshop.service.cart', 'jigoshop.service.customer', 'jigoshop.service.shipping', 'jigoshop.service.payment', 'jigoshop.service.order')); $services->setDetails('jigoshop.page.checkout.thank_you', 'Jigoshop\\Frontend\\Page\\Checkout\\ThankYou', array('wpal', 'jigoshop.options', 'jigoshop.messages', 'jigoshop.service.order')); $services->setDetails('jigoshop.page.checkout.pay', 'Jigoshop\\Frontend\\Page\\Checkout\\Pay', array('wpal', 'jigoshop.options', 'jigoshop.messages', 'jigoshop.service.order', 'jigoshop.service.payment')); $services->setDetails('jigoshop.page.account', 'Jigoshop\\Frontend\\Page\\Account', array('wpal', 'jigoshop.options', 'jigoshop.service.customer', 'jigoshop.service.order', 'jigoshop.messages')); $services->setDetails('jigoshop.page.account.edit_address', 'Jigoshop\\Frontend\\Page\\Account\\EditAddress', array('wpal', 'jigoshop.options', 'jigoshop.service.customer', 'jigoshop.messages')); $services->setDetails('jigoshop.page.account.change_password', 'Jigoshop\\Frontend\\Page\\Account\\ChangePassword', array('wpal', 'jigoshop.options', 'jigoshop.service.customer', 'jigoshop.messages')); $services->setDetails('jigoshop.page.account.orders', 'Jigoshop\\Frontend\\Page\\Account\\Orders', array('wpal', 'jigoshop.options', 'jigoshop.service.customer', 'jigoshop.service.order', 'jigoshop.messages')); $services->setDetails('jigoshop.page.dummy', 'Jigoshop\\Frontend\\Page\\Dummy', array('wpal', 'jigoshop.options', 'jigoshop.service.product', 'jigoshop.service.cart', 'jigoshop.messages')); }