getContainer(); // Docs importer. $container->share( 'admin-help-docs-importer', HelpDocsImporter::class ) ->withArgument( $this->get_remote_api_url() ) ->withArgument( $container->get( 'scheduler' ) ); // Context. $container->share( 'admin-help-docs-context', HelpDocsContext::class ); // UI. $container->share( 'admin-help-ui', HelpUi::class ) ->withArgument( $container->get( 'admin-help-docs-context' ) ); } /** * Returns the API URL for remote doc articles to import. * * @since 4.4.6 * * @return string */ private function get_remote_api_url() { if ( defined( 'SIMPAY_HELP_DOCS_API_URL' ) ) { return SIMPAY_HELP_DOCS_API_URL; } return 'https://wpsimplepay.com/wp-content/docs.json'; } }