芝麻web文件管理V1.00
编辑当前文件:/home/elegucvf/public_html/src/dashboard/application/configuration/dashboard-configuration.php
content_types_repository = $content_types_repository; $this->indexable_helper = $indexable_helper; $this->user_helper = $user_helper; $this->enabled_analysis_features_repository = $enabled_analysis_features_repository; $this->endpoints_repository = $endpoints_repository; $this->nonce_repository = $nonce_repository; $this->site_kit_integration_data = $site_kit_integration_data; } /** * Returns a configuration * * @return array
> */ public function get_configuration(): array { return [ 'contentTypes' => $this->content_types_repository->get_content_types(), 'indexablesEnabled' => $this->indexable_helper->should_index_indexables(), 'displayName' => $this->user_helper->get_current_user_display_name(), 'enabledAnalysisFeatures' => $this->enabled_analysis_features_repository->get_features_by_keys( [ Readability_Analysis::NAME, Keyphrase_Analysis::NAME, ] )->to_array(), 'endpoints' => $this->endpoints_repository->get_all_endpoints()->to_array(), 'nonce' => $this->nonce_repository->get_rest_nonce(), 'siteKitConfiguration' => $this->site_kit_integration_data->to_array(), ]; } }