Changeset 3488929
- Timestamp:
- 03/23/2026 11:48:07 AM (10 days ago)
- Location:
- nativerent/trunk
- Files:
-
- 5 added
- 23 edited
-
inc/Admin/Controller.php (modified) (5 diffs)
-
inc/Admin/Notices/Notice.php (modified) (2 diffs)
-
inc/Admin/Notices/SettingsErrors.php (added)
-
inc/Admin/Requests/UpdateSettings.php (modified) (2 diffs)
-
inc/Admin/Views/Settings.php (modified) (2 diffs)
-
inc/Admin/Views/SettingsErrorsNoticeContent.php (added)
-
inc/Common/Cron/WpCronTasksRegistry.php (modified) (3 diffs)
-
inc/Common/NRentService.php (modified) (2 diffs)
-
inc/Common/SDK/APIClient.php (modified) (2 diffs)
-
inc/Common/SDK/Auth/AuthPayload.php (modified) (1 diff)
-
inc/Common/SDK/CommonResponse.php (modified) (1 diff)
-
inc/Common/SDK/Reporting/SendIssuePayload.php (modified) (1 diff)
-
inc/Common/SDK/State/GetOptionsPayload.php (modified) (1 diff)
-
inc/Common/SDK/State/SendStatePayload.php (modified) (1 diff)
-
inc/Common/SDK/State/SendStatusPayload.php (modified) (1 diff)
-
inc/Common/SDK/State/StateInterface.php (modified) (1 diff)
-
inc/Common/SDK/State/ValidatePayload.php (added)
-
inc/Common/SDK/State/ValidateResponse.php (added)
-
inc/Core/Cron/TaskInterval.php (modified) (1 diff)
-
nativerent.php (modified) (3 diffs)
-
phpcs.xml (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
resources/templates/admin/notices/settings-errors.php (added)
-
resources/templates/admin/settings.php (modified) (3 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/autoload_classmap.php (modified) (3 diffs)
-
vendor/composer/autoload_real.php (modified) (5 diffs)
-
vendor/composer/autoload_static.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nativerent/trunk/inc/Admin/Controller.php
r3222797 r3488929 5 5 use Exception; 6 6 use NativeRent\Admin\Events\SettingsUpdated; 7 use NativeRent\Admin\Notices\SettingsErrors; 7 8 use NativeRent\Admin\Requests\Auth; 8 9 use NativeRent\Admin\Requests\ClearCache; … … 14 15 use NativeRent\Admin\Views\Settings; 15 16 use NativeRent\Common\Articles\RepositoryInterface; 17 use NativeRent\Common\Entities\AdUnitsConfig; 16 18 use NativeRent\Common\NRentService; 17 19 use NativeRent\Common\Options; 20 use NativeRent\Common\SDK\Http\RequestException; 18 21 use NativeRent\Core\Container\Exceptions\DependencyNotFound; 19 22 use NativeRent\Core\Events\DispatcherInterface; 23 use NativeRent\Core\Notices\NoticesRegistry; 20 24 use NativeRent\Core\View\Renderer; 21 25 use NativeRent\Core\View\ViewInterface; … … 83 87 } 84 88 89 $errors = $this->session->get( 'errors', [] ); 90 if ( ! is_array( $errors ) ) { 91 $errors = []; 92 } 93 $validationErrors = $this->session->get( 'validation_errors', [] ); 94 if ( ! is_array( $validationErrors ) ) { 95 $validationErrors = []; 96 } 97 98 $adUnitsConfig = $this->options->getAdUnitsConfig(); 99 if ( ! empty( $errors ) ) { 100 $notices = nrentapp( NoticesRegistry::class ); 101 $notices->addNotice( new SettingsErrors( $errors ) ); 102 $prevAdUnitsConfig = $this->session->get( 'adUnitsConfig' ); 103 if ( ! empty( $prevAdUnitsConfig ) ) { 104 $adUnitsConfig = new AdUnitsConfig( $prevAdUnitsConfig ); 105 } 106 } 107 85 108 $this->displayView( 86 109 new Layout( 87 110 new Settings( 88 $this->options->getAdUnitsConfig(), 89 $this->options->getMonetizations(), 90 $randomPermalink 111 $adUnitsConfig, 112 $monetizations, 113 $randomPermalink, 114 $errors, 115 $validationErrors 91 116 ), 92 117 true … … 110 135 $request = new UpdateSettings(); 111 136 if ( ! empty( $request->adUnitsConfig ) ) { 112 if ( $this->options->setAdUnitsConfig( $request->adUnitsConfig ) ) { 137 // Validate data. 138 $validationRes = nrentapp( NRentService::class )->validateAdUnitsConfig( $request->adUnitsConfig ); 139 if ( ! $validationRes['success'] ) { 140 $this->session->add( 'adUnitsConfig', $request->adUnitsConfig->jsonSerialize() ); 141 142 if ( ! empty( $validationRes['errors'] ) ) { 143 $this->session->add( 'validation_errors', $validationRes['errors'] ); 144 $this->session->add( 'errors', [ __( 'Не удалось применить настройки, потому что некоторые поля заполнены неверно', 'nativerent' ) ] ); 145 } else { 146 $err = ! empty( $validationRes['request_error']['message'] ) ? $validationRes['request_error']['message'] : __( 'Не удалось проверить данные', 'nativerent' ); 147 $this->session->add( 'errors', [ 'validateAdUnitsConfig: ' . $err ] ); 148 } 149 } elseif ( $this->options->setAdUnitsConfig( $request->adUnitsConfig ) ) { 113 150 $this->events->dispatch( new SettingsUpdated() ); 114 151 } … … 143 180 public function auth() { 144 181 $request = new Auth(); 145 $service = nrentapp( NRentService::class ); 146 $res = $service->authorize( 147 wpnrent_get_domain(), 148 $request->login, 149 $request->getPassword() 150 ); 182 $res = [ 'success' => false ]; 183 try { 184 $res = nrentapp( NRentService::class )->authorize( 185 wpnrent_get_domain(), 186 $request->login, 187 $request->getPassword() 188 ); 189 } catch ( RequestException $e ) { 190 $res['errors'] = [ 'request_error' => __( ' Произошла ошибка ' ) . ': ' . $e->getMessage() ]; 191 } 192 151 193 if ( $res['success'] ) { 152 194 $this->options->setClearCacheFlag( 1 ); -
nativerent/trunk/inc/Admin/Notices/Notice.php
r3062141 r3488929 5 5 use InvalidArgumentException; 6 6 use NativeRent\Core\Notices\AbstractNotice; 7 use NativeRent\Core\Notices\NoticeInterface; 7 8 8 9 class Notice extends AbstractNotice { … … 15 16 * @throws InvalidArgumentException 16 17 */ 17 public function __construct( $content, $level = self::LEVEL_INFO, $options = [] ) {18 public function __construct( $content, $level = NoticeInterface::LEVEL_INFO, $options = [] ) { 18 19 if ( ! is_string( $content ) ) { 19 20 throw new InvalidArgumentException( 'Notice content must be string' ); -
nativerent/trunk/inc/Admin/Requests/UpdateSettings.php
r3247784 r3488929 19 19 * Config instance with sanitized data. 20 20 * 21 * @var AdUnitsConfig 21 * @var AdUnitsConfig|null 22 22 */ 23 23 public $adUnitsConfig = null; … … 35 35 * @param array|null $data Raw POST payload data. 36 36 * 37 * @return AdUnitsConfig 37 * @return AdUnitsConfig|null 38 38 */ 39 39 private function setAdUnitsConfig( $data ) { -
nativerent/trunk/inc/Admin/Views/Settings.php
r3110316 r3488929 31 31 public $demoPageURL; 32 32 33 /** @var string[] */ 34 public $errors; 35 36 /** @var array<string, string> */ 37 public $validationErrors; 38 33 39 /** 34 * @param AdUnitsConfig $adUnitsConfig 35 * @param Monetizations $monetizations 36 * @param string $demoPageURL 40 * @param AdUnitsConfig $adUnitsConfig 41 * @param Monetizations $monetizations 42 * @param string $demoPageURL 43 * @param string[] $errors 44 * @param array<string, string> $validationErrors 37 45 * 38 46 * @throws \Exception … … 41 49 AdUnitsConfig $adUnitsConfig, 42 50 Monetizations $monetizations, 43 $demoPageURL 51 $demoPageURL, 52 $errors = [], 53 $validationErrors = [] 44 54 ) { 45 $this->adUnitsConfig = $adUnitsConfig; 46 $this->regularSettings = ! $monetizations->isRegularRejected(); 47 $this->ntgbSettings = ! $monetizations->isNtgbRejected(); 48 $this->demoPageURL = $demoPageURL; 55 $this->adUnitsConfig = $adUnitsConfig; 56 $this->regularSettings = ! $monetizations->isRegularRejected(); 57 $this->ntgbSettings = ! $monetizations->isNtgbRejected(); 58 $this->demoPageURL = $demoPageURL; 59 $this->errors = $errors; 60 $this->validationErrors = $validationErrors; 61 49 62 $this->actionURL = nrentroute( 'settings.update' )->path; 50 63 $this->labels = $this->labels(); -
nativerent/trunk/inc/Common/Cron/WpCronTasksRegistry.php
r3062141 r3488929 20 20 private $namePrefix; 21 21 22 /** @var int[] */23 private $registeredIntervals = [];24 25 22 /** 26 23 * @param string $namePrefix … … 28 25 public function __construct( $namePrefix = '' ) { 29 26 $this->namePrefix = empty( $namePrefix ) ? '' : $namePrefix . '_'; 27 $this->registerIntervals( TaskInterval::getAllIntervals() ); 30 28 } 31 29 … … 69 67 70 68 private function registerInterval( TaskInterval $interval ) { 71 if ( in_array( $interval->getSeconds(), $this->registeredIntervals, true ) ) { 72 return; 73 } 69 $this->registerIntervals( [ $interval ] ); 70 } 74 71 72 /** 73 * @param TaskInterval[] $intervals 74 * @return void 75 */ 76 private function registerIntervals( $intervals ) { 75 77 add_filter( 76 78 'cron_schedules', 77 function ( $recurrence ) use ( $interval ) { 78 $name = $this->getIntervalName( $interval ); 79 $recurrence[ $name ] = [ 80 'interval' => $interval->getSeconds(), 81 'display' => 'Every ' . $interval->getSeconds() . ' seconds', 82 ]; 79 function ( $recurrence ) use ( $intervals ) { 80 foreach ( $intervals as $i ) { 81 $recurrence[ $this->getIntervalName( $i ) ] = [ 82 'interval' => $i->getSeconds(), 83 'display' => 'Every ' . $i->getSeconds() . ' seconds', 84 ]; 85 } 83 86 84 87 return $recurrence; 85 88 } 86 89 ); 87 88 $this->registeredIntervals[] = $interval->getSeconds();89 90 } 90 91 } -
nativerent/trunk/inc/Common/NRentService.php
r3227396 r3488929 19 19 use NativeRent\Common\SDK\State\SendStatusPayload; 20 20 21 use NativeRent\Common\SDK\State\ValidatePayload; 21 22 use function array_key_exists; 22 23 use function is_null; … … 146 147 147 148 /** 149 * @param AdUnitsConfig $adUnitsConfig 150 * 151 * @return array{success: bool, errors: array<string, string>, request_error: array{status: int, message: string}|null} 152 */ 153 public function validateAdUnitsConfig( AdUnitsConfig $adUnitsConfig ) { 154 $result = [ 155 'success' => false, 156 'request_error' => null, 157 'errors' => [], 158 ]; 159 160 /** 161 * @param int $code Http status code. 162 * @param string $message Error message. 163 * 164 * @return array{status: int, message: string} 165 */ 166 $requestError = static function ( $code, $message ) { 167 return [ 168 'code' => (int) $code, 169 'message' => (string) $message, 170 ]; 171 }; 172 173 $siteID = $this->options->getSiteID(); 174 if ( empty( $siteID ) ) { 175 $result['request_error'] = $requestError( 401, 'Unauthorized' ); 176 177 return $result; 178 } 179 180 try { 181 $response = $this->client->validate( new ValidatePayload( $siteID, $adUnitsConfig ) ); 182 } catch ( RequestException $e ) { 183 $result['request_error'] = $requestError( $e->getCode(), $e->getMessage() ); 184 185 return $result; 186 } 187 188 $result['success'] = $response->isSuccess(); 189 $result['errors'] = ! is_null( $response->getErrors() ) ? $response->getErrors() : []; 190 191 return $result; 192 } 193 194 /** 148 195 * Actualize monetizations statuses. 149 196 * -
nativerent/trunk/inc/Common/SDK/APIClient.php
r3222797 r3488929 24 24 use NativeRent\Common\SDK\State\StateInterface; 25 25 26 use NativeRent\Common\SDK\State\ValidateAdUnitsConfigPayload; 27 use NativeRent\Common\SDK\State\ValidatePayload; 28 use NativeRent\Common\SDK\State\ValidateResponse; 26 29 use function http_build_query; 27 30 use function is_array; … … 265 268 * @throws RequestException 266 269 */ 270 public function validate( ValidatePayload $payload ) { 271 $response = $this->execRequest( 272 new Request( 273 Request::METHOD_POST, 274 $this->apiMethodURI( 'validate' ), 275 json_encode( $payload ), 276 [ 277 'content-type' => 'application/json', 278 'accept' => 'application/json', 279 ] 280 ), 281 true 282 ); 283 284 return ValidateResponse::hydrate( ! is_null( $response ) ? $response->getDecodedBody() : [ 'success' => false ] ); 285 } 286 287 /** 288 * {@inheritDoc} 289 * 290 * @throws RequestException 291 */ 267 292 public function sendIssue( SendIssuePayload $payload ) { 268 293 $this->execRequest( -
nativerent/trunk/inc/Common/SDK/Auth/AuthPayload.php
r3222797 r3488929 67 67 * {@inheritDoc} 68 68 */ 69 #[\ReturnTypeWillChange] 69 70 public function jsonSerialize() { 70 71 return [ -
nativerent/trunk/inc/Common/SDK/CommonResponse.php
r3222797 r3488929 26 26 27 27 /** 28 * @return string[]|null28 * @return array<string, string>|null 29 29 */ 30 30 public function getErrors() { -
nativerent/trunk/inc/Common/SDK/Reporting/SendIssuePayload.php
r3222797 r3488929 128 128 * {@inheritDoc} 129 129 */ 130 #[\ReturnTypeWillChange] 130 131 public function jsonSerialize() { 131 132 return [ -
nativerent/trunk/inc/Common/SDK/State/GetOptionsPayload.php
r3222797 r3488929 43 43 * {@inheritDoc} 44 44 */ 45 #[\ReturnTypeWillChange] 45 46 public function jsonSerialize() { 46 47 return [ -
nativerent/trunk/inc/Common/SDK/State/SendStatePayload.php
r3222797 r3488929 44 44 * {@inheritDoc} 45 45 */ 46 #[\ReturnTypeWillChange] 46 47 public function jsonSerialize() { 47 48 return [ -
nativerent/trunk/inc/Common/SDK/State/SendStatusPayload.php
r3222797 r3488929 39 39 * {@inheritDoc} 40 40 */ 41 #[\ReturnTypeWillChange] 41 42 public function jsonSerialize() { 42 43 return [ -
nativerent/trunk/inc/Common/SDK/State/StateInterface.php
r3222797 r3488929 34 34 */ 35 35 public function sendStatus( SendStatusPayload $payload ); 36 37 /** 38 * Checking some state data. 39 * 40 * @param ValidatePayload $payload 41 * 42 * @return ValidateResponse 43 */ 44 public function validate( ValidatePayload $payload ); 36 45 } -
nativerent/trunk/inc/Core/Cron/TaskInterval.php
r3062141 r3488929 20 20 21 21 $this->seconds = $seconds; 22 } 23 24 /** 25 * @return self[] 26 */ 27 public static function getAllIntervals() { 28 return [ 29 self::everyMinute(), 30 self::everyFiveMinutes(), 31 self::halfHourly(), 32 self::hourly(), 33 self::twiceDaily(), 34 self::daily(), 35 ]; 22 36 } 23 37 -
nativerent/trunk/nativerent.php
r3416076 r3488929 4 4 * Plugin URI: https://wordpress.org/plugins/nativerent/ 5 5 * Description: Релевантная реклама для ваших читателей. Рекламодатели сервиса платят в 2-3 раза больше за 1 тыс. показов страниц, чем привычные рекламные сетки. Страница выкупается полностью, на ней размещается максимум четыре рекламных блока, которые выглядят нативно в стиле сайта. 6 * Version: 2.1. 56 * Version: 2.1.6 7 7 * Requires at least: 4.9 8 8 * Tested up to: 6.9 … … 28 28 // Plugin version. 29 29 if ( ! defined( 'NATIVERENT_PLUGIN_VERSION' ) ) { 30 define( 'NATIVERENT_PLUGIN_VERSION', '2.1. 5' );30 define( 'NATIVERENT_PLUGIN_VERSION', '2.1.6' ); 31 31 } 32 32 // Plugin Folder Path. … … 67 67 ! empty( $_nrentFormComponentsURL ) 68 68 ? $_nrentFormComponentsURL 69 : 'https://assets.nativerent.ru/web-components/wp/v1. 0.iife.js'69 : 'https://assets.nativerent.ru/web-components/wp/v1.3.iife.js' 70 70 ); 71 71 } -
nativerent/trunk/phpcs.xml
r3062141 r3488929 14 14 <exclude-pattern>/dist/*</exclude-pattern> 15 15 <exclude-pattern>/static/*</exclude-pattern> 16 <exclude-pattern>/tests/*</exclude-pattern>17 16 <exclude-pattern>/vendor/*</exclude-pattern> 18 17 <exclude-pattern>/dist/*</exclude-pattern> -
nativerent/trunk/readme.txt
r3416076 r3488929 7 7 Tested up to: 6.9 8 8 Requires PHP: 5.6.20 9 Stable tag: 2.1. 59 Stable tag: 2.1.6 10 10 License: GPLv2 or later 11 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
nativerent/trunk/resources/templates/admin/settings.php
r3247784 r3488929 14 14 data-ntgb-count="<?php echo count( $view->adUnitsConfig->ntgb->getActiveUnits() ); ?>" 15 15 data-demo-page="<?php echo esc_attr( $view->demoPageURL ); ?>" 16 data-errors="<?php echo esc_attr( json_encode( $view->validationErrors ) ); ?>" 16 17 > 17 18 <noscript> … … 27 28 <script> 28 29 (function () { 30 var adBlockMsg = '<?php esc_html_e( 'Возникла ошибка при загрузке формы. Если вы используете блокировщик рекламы, то попробуйте отключить его и перезагрузить страницу.', 'nativerent' ); ?>' 29 31 window.addEventListener('load', function () { 30 32 if (window.NRENT_FORM_COMPONENT_ERROR) { … … 32 34 var errMsg = document.createElement('h2') 33 35 errMsg.classList.add('NativeRentAdmin_validationError') 34 errMsg.textContent = 'Возникла ошибка при загрузке формы. ' + 35 'Если вы используете блокировщик рекламы, то попробуйте отключить его и перезагрузить страницу.' 36 errMsg.textContent = adBlockMsg 36 37 root.insertAdjacentElement('afterend', errMsg) 37 38 } -
nativerent/trunk/vendor/autoload.php
r3416076 r3488929 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 419f8c3c2d47b34eee491a1c33fd23e3::getLoader();7 return ComposerAutoloaderInitf0b408ac4deaffb29d46c12c92f2095c::getLoader(); -
nativerent/trunk/vendor/composer/autoload_classmap.php
r3222797 r3488929 18 18 'NativeRent\\Admin\\Notices\\InvalidApiToken' => $baseDir . '/inc/Admin/Notices/InvalidApiToken.php', 19 19 'NativeRent\\Admin\\Notices\\Notice' => $baseDir . '/inc/Admin/Notices/Notice.php', 20 'NativeRent\\Admin\\Notices\\SettingsErrors' => $baseDir . '/inc/Admin/Notices/SettingsErrors.php', 20 21 'NativeRent\\Admin\\Notices\\Unauthorized' => $baseDir . '/inc/Admin/Notices/Unauthorized.php', 21 22 'NativeRent\\Admin\\Requests\\AbstractRequest' => $baseDir . '/inc/Admin/Requests/AbstractRequest.php', … … 37 38 'NativeRent\\Admin\\Views\\PromptSiteRejected' => $baseDir . '/inc/Admin/Views/PromptSiteRejected.php', 38 39 'NativeRent\\Admin\\Views\\Settings' => $baseDir . '/inc/Admin/Views/Settings.php', 40 'NativeRent\\Admin\\Views\\SettingsErrorsNoticeContent' => $baseDir . '/inc/Admin/Views/SettingsErrorsNoticeContent.php', 39 41 'NativeRent\\Admin\\Views\\UnauthorizedNoticeContent' => $baseDir . '/inc/Admin/Views/UnauthorizedNoticeContent.php', 40 42 'NativeRent\\Api\\ApiRouter' => $baseDir . '/inc/Api/ApiRouter.php', … … 106 108 'NativeRent\\Common\\SDK\\State\\SendStatusPayload' => $baseDir . '/inc/Common/SDK/State/SendStatusPayload.php', 107 109 'NativeRent\\Common\\SDK\\State\\StateInterface' => $baseDir . '/inc/Common/SDK/State/StateInterface.php', 110 'NativeRent\\Common\\SDK\\State\\ValidatePayload' => $baseDir . '/inc/Common/SDK/State/ValidatePayload.php', 111 'NativeRent\\Common\\SDK\\State\\ValidateResponse' => $baseDir . '/inc/Common/SDK/State/ValidateResponse.php', 108 112 'NativeRent\\Common\\SDK\\WordPress\\Client' => $baseDir . '/inc/Common/SDK/WordPress/Client.php', 109 113 'NativeRent\\Core\\Container\\Container' => $baseDir . '/inc/Core/Container/Container.php', -
nativerent/trunk/vendor/composer/autoload_real.php
r3416076 r3488929 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 419f8c3c2d47b34eee491a1c33fd23e35 class ComposerAutoloaderInitf0b408ac4deaffb29d46c12c92f2095c 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 419f8c3c2d47b34eee491a1c33fd23e3', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitf0b408ac4deaffb29d46c12c92f2095c', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 419f8c3c2d47b34eee491a1c33fd23e3', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitf0b408ac4deaffb29d46c12c92f2095c', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit 419f8c3c2d47b34eee491a1c33fd23e3::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInitf0b408ac4deaffb29d46c12c92f2095c::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit 419f8c3c2d47b34eee491a1c33fd23e3::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInitf0b408ac4deaffb29d46c12c92f2095c::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire 419f8c3c2d47b34eee491a1c33fd23e3($fileIdentifier, $file);59 composerRequiref0b408ac4deaffb29d46c12c92f2095c($fileIdentifier, $file); 60 60 } 61 61 … … 69 69 * @return void 70 70 */ 71 function composerRequire 419f8c3c2d47b34eee491a1c33fd23e3($fileIdentifier, $file)71 function composerRequiref0b408ac4deaffb29d46c12c92f2095c($fileIdentifier, $file) 72 72 { 73 73 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
nativerent/trunk/vendor/composer/autoload_static.php
r3416076 r3488929 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 419f8c3c2d47b34eee491a1c33fd23e37 class ComposerStaticInitf0b408ac4deaffb29d46c12c92f2095c 8 8 { 9 9 public static $files = array ( … … 45 45 'NativeRent\\Admin\\Notices\\InvalidApiToken' => __DIR__ . '/../..' . '/inc/Admin/Notices/InvalidApiToken.php', 46 46 'NativeRent\\Admin\\Notices\\Notice' => __DIR__ . '/../..' . '/inc/Admin/Notices/Notice.php', 47 'NativeRent\\Admin\\Notices\\SettingsErrors' => __DIR__ . '/../..' . '/inc/Admin/Notices/SettingsErrors.php', 47 48 'NativeRent\\Admin\\Notices\\Unauthorized' => __DIR__ . '/../..' . '/inc/Admin/Notices/Unauthorized.php', 48 49 'NativeRent\\Admin\\Requests\\AbstractRequest' => __DIR__ . '/../..' . '/inc/Admin/Requests/AbstractRequest.php', … … 64 65 'NativeRent\\Admin\\Views\\PromptSiteRejected' => __DIR__ . '/../..' . '/inc/Admin/Views/PromptSiteRejected.php', 65 66 'NativeRent\\Admin\\Views\\Settings' => __DIR__ . '/../..' . '/inc/Admin/Views/Settings.php', 67 'NativeRent\\Admin\\Views\\SettingsErrorsNoticeContent' => __DIR__ . '/../..' . '/inc/Admin/Views/SettingsErrorsNoticeContent.php', 66 68 'NativeRent\\Admin\\Views\\UnauthorizedNoticeContent' => __DIR__ . '/../..' . '/inc/Admin/Views/UnauthorizedNoticeContent.php', 67 69 'NativeRent\\Api\\ApiRouter' => __DIR__ . '/../..' . '/inc/Api/ApiRouter.php', … … 133 135 'NativeRent\\Common\\SDK\\State\\SendStatusPayload' => __DIR__ . '/../..' . '/inc/Common/SDK/State/SendStatusPayload.php', 134 136 'NativeRent\\Common\\SDK\\State\\StateInterface' => __DIR__ . '/../..' . '/inc/Common/SDK/State/StateInterface.php', 137 'NativeRent\\Common\\SDK\\State\\ValidatePayload' => __DIR__ . '/../..' . '/inc/Common/SDK/State/ValidatePayload.php', 138 'NativeRent\\Common\\SDK\\State\\ValidateResponse' => __DIR__ . '/../..' . '/inc/Common/SDK/State/ValidateResponse.php', 135 139 'NativeRent\\Common\\SDK\\WordPress\\Client' => __DIR__ . '/../..' . '/inc/Common/SDK/WordPress/Client.php', 136 140 'NativeRent\\Core\\Container\\Container' => __DIR__ . '/../..' . '/inc/Core/Container/Container.php', … … 178 182 { 179 183 return \Closure::bind(function () use ($loader) { 180 $loader->prefixLengthsPsr4 = ComposerStaticInit 419f8c3c2d47b34eee491a1c33fd23e3::$prefixLengthsPsr4;181 $loader->prefixDirsPsr4 = ComposerStaticInit 419f8c3c2d47b34eee491a1c33fd23e3::$prefixDirsPsr4;182 $loader->classMap = ComposerStaticInit 419f8c3c2d47b34eee491a1c33fd23e3::$classMap;184 $loader->prefixLengthsPsr4 = ComposerStaticInitf0b408ac4deaffb29d46c12c92f2095c::$prefixLengthsPsr4; 185 $loader->prefixDirsPsr4 = ComposerStaticInitf0b408ac4deaffb29d46c12c92f2095c::$prefixDirsPsr4; 186 $loader->classMap = ComposerStaticInitf0b408ac4deaffb29d46c12c92f2095c::$classMap; 183 187 184 188 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.