Файловый менеджер - Редактировать - /home/avadvi5/public_html/fcolliver.com/wp-content/plugins/wpforms-geolocation/src/PlacesProviders/ProvidersFactory.php
Ðазад
<?php namespace WPFormsGeolocation\PlacesProviders; use WPFormsGeolocation\Admin\Settings\Settings; /** * Class ProvidersFactory. * * @since 2.0.0 */ class ProvidersFactory { /** * Settings. * * @since 2.0.0 * * @var Settings */ private $settings; /** * List of available providers. * * @since 2.0.0 * @since 2.3.0 Removed Algolia Places and added the Mapbox Search provider. * * @var array */ private $providers = [ 'google-places' => GooglePlaces::class, 'mapbox-search' => MapboxSearch::class, ]; /** * ProvidersFactory constructor. * * @since 2.0.0 * * @param Settings $settings Settings. */ public function __construct( Settings $settings ) { $this->settings = $settings; } /** * Get current provider. * * @since 2.0.0 * * @return IPlacesProvider|null */ public function get_current_provider() { $current_provider = $this->settings->get_current_provider(); if ( ! isset( $this->providers[ $current_provider ] ) ) { return null; } return new $this->providers[ $current_provider ](); } }
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка