context = adp_context(); } public function withContext(Context $context) { $this->context = $context; } public function start() { Updater::update(); /** * @var AdminPage $adminPage */ $adminPage = Factory::get('AdminExtensions_AdminPage'); $adminPage->registerPage(); if ($this->context->isPluginAdminPage()) { $adminPage->register(); } $this->context->adminNotice->register(); $wcProductPageExt = new WcProductPageExtensions(); $wcProductPageExt->register(); $metaBoxes = new MetaBoxes(); $metaBoxes->register(); $orderPreview = new WcOrderPreviewExtensions(); $orderPreview->register(); /** @see Functions::install() */ Factory::callStaticMethod("Functions", 'install'); (new WooVariationSwatchesCmp())->applyCompatibility(); } }