Changeset 3464705
- Timestamp:
- 02/19/2026 02:42:32 AM (7 weeks ago)
- Location:
- template-oriented-form-utilities
- Files:
-
- 28 edited
- 10 copied
-
tags/0.0.2 (copied) (copied from template-oriented-form-utilities/trunk)
-
tags/0.0.2/assets (copied) (copied from template-oriented-form-utilities/trunk/assets)
-
tags/0.0.2/composer.json (copied) (copied from template-oriented-form-utilities/trunk/composer.json)
-
tags/0.0.2/index.php (copied) (copied from template-oriented-form-utilities/trunk/index.php)
-
tags/0.0.2/languages (copied) (copied from template-oriented-form-utilities/trunk/languages)
-
tags/0.0.2/migrations (copied) (copied from template-oriented-form-utilities/trunk/migrations)
-
tags/0.0.2/readme.txt (copied) (copied from template-oriented-form-utilities/trunk/readme.txt) (2 diffs)
-
tags/0.0.2/src (copied) (copied from template-oriented-form-utilities/trunk/src)
-
tags/0.0.2/template-oriented-form-utilities.php (copied) (copied from template-oriented-form-utilities/trunk/template-oriented-form-utilities.php) (3 diffs)
-
tags/0.0.2/vendor (copied) (copied from template-oriented-form-utilities/trunk/vendor)
-
tags/0.0.2/vendor/autoload.php (modified) (1 diff)
-
tags/0.0.2/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/0.0.2/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/0.0.2/vendor/monolog/monolog/composer.json (modified) (1 diff)
-
tags/0.0.2/vendor/monolog/monolog/src/Monolog/ErrorHandler.php (modified) (2 diffs)
-
tags/0.0.2/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php (modified) (3 diffs)
-
tags/0.0.2/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php (modified) (2 diffs)
-
tags/0.0.2/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php (modified) (3 diffs)
-
tags/0.0.2/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php (modified) (1 diff)
-
tags/0.0.2/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php (modified) (1 diff)
-
tags/0.0.2/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php (modified) (1 diff)
-
tags/0.0.2/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php (modified) (1 diff)
-
tags/0.0.2/vendor/monolog/monolog/src/Monolog/SignalHandler.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/template-oriented-form-utilities.php (modified) (3 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/monolog/monolog/composer.json (modified) (1 diff)
-
trunk/vendor/monolog/monolog/src/Monolog/ErrorHandler.php (modified) (2 diffs)
-
trunk/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php (modified) (3 diffs)
-
trunk/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php (modified) (2 diffs)
-
trunk/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php (modified) (3 diffs)
-
trunk/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php (modified) (1 diff)
-
trunk/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php (modified) (1 diff)
-
trunk/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php (modified) (1 diff)
-
trunk/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php (modified) (1 diff)
-
trunk/vendor/monolog/monolog/src/Monolog/SignalHandler.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
template-oriented-form-utilities/tags/0.0.2/readme.txt
r3464549 r3464705 3 3 Tags: forms, utilities, template-oriented 4 4 Tested up to: 6.9 5 Requires PHP: 8. 26 Stable tag: 0.0. 15 Requires PHP: 8.1 6 Stable tag: 0.0.2 7 7 License: GPLv3 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.txt 9 9 10 Template-Oriented Form Utilities is a WordPress plugin that provides a set of utilities for handling forms in a template-oriented manner. It simplifies form creation, validation, and processing by leveraging templates for rendering and managing form data.10 Template-Oriented Form Utilities is a WordPress plugin that simplifies form creation, validation, and processing through template-based rendering and data management. 11 11 12 12 == Description == 13 13 14 14 Template-Oriented Form Utilities (TOFU) is designed to streamline the process of creating and managing forms within WordPress themes and plugins. By adopting a template-oriented approach, TOFU allows developers to define form structures and behaviors using reusable templates, making it easier to manage/maintain with team collaboration through version control systems. 15 16 GitHub and documentation for this plugin can be found at: 17 18 [https://github.com/lionheart-group/template-oriented-form-utilities](https://github.com/lionheart-group/template-oriented-form-utilities) 15 19 16 20 == External services == … … 58 62 59 63 * v0.0.1 - Initial release. 64 * v0.0.2 - Arranged required PHP version to 8.1, added external services section to the readme. 60 65 61 66 -
template-oriented-form-utilities/tags/0.0.2/template-oriented-form-utilities.php
r3464549 r3464705 3 3 /** 4 4 * @link https://www.lionheart.co.jp/ 5 * @since 0.0.2 - Changed required PHP version to 8.1 5 6 * @since 0.0.1 6 7 * @package Tofu … … 10 11 * Plugin URI: https://lionheart-group.github.io/template-oriented-form-utilities/ 11 12 * Description: Template-Oriented Form Utilities is a WordPress plugin that provides a set of utilities for handling forms in a template-oriented manner. 12 * Version: 0.0. 113 * Version: 0.0.2 13 14 * Author: lionheartgroup 14 15 * Author URI: https://www.lionheart.co.jp/ … … 26 27 * Rename this for your plugin and update it as you release new versions. 27 28 */ 28 \define('TOFU_VERSION', '0.0. 1');29 \define('TOFU_VERSION', '0.0.2'); 29 30 \define('TOFU_PLUGIN_DIR', \plugin_dir_path(__FILE__)); 30 31 \define('TOFU_PLUGIN_FILE', __FILE__); -
template-oriented-form-utilities/tags/0.0.2/vendor/autoload.php
r3464549 r3464705 20 20 require_once __DIR__ . '/composer/autoload_real.php'; 21 21 22 return ComposerAutoloaderInit daa68e1af038c1e02203ed3b72cc4ff3::getLoader();22 return ComposerAutoloaderInit228de02e5f1ae46db6ee3cf9691e2d7a::getLoader(); -
template-oriented-form-utilities/tags/0.0.2/vendor/composer/autoload_real.php
r3464549 r3464705 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit daa68e1af038c1e02203ed3b72cc4ff35 class ComposerAutoloaderInit228de02e5f1ae46db6ee3cf9691e2d7a 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit daa68e1af038c1e02203ed3b72cc4ff3', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit228de02e5f1ae46db6ee3cf9691e2d7a', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit daa68e1af038c1e02203ed3b72cc4ff3', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit228de02e5f1ae46db6ee3cf9691e2d7a', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit daa68e1af038c1e02203ed3b72cc4ff3::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit228de02e5f1ae46db6ee3cf9691e2d7a::getInitializer($loader)); 31 31 32 32 $loader->setClassMapAuthoritative(true); -
template-oriented-form-utilities/tags/0.0.2/vendor/composer/autoload_static.php
r3464549 r3464705 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit daa68e1af038c1e02203ed3b72cc4ff37 class ComposerStaticInit228de02e5f1ae46db6ee3cf9691e2d7a 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 206 206 { 207 207 return \Closure::bind(function () use ($loader) { 208 $loader->prefixLengthsPsr4 = ComposerStaticInit daa68e1af038c1e02203ed3b72cc4ff3::$prefixLengthsPsr4;209 $loader->prefixDirsPsr4 = ComposerStaticInit daa68e1af038c1e02203ed3b72cc4ff3::$prefixDirsPsr4;210 $loader->classMap = ComposerStaticInit daa68e1af038c1e02203ed3b72cc4ff3::$classMap;208 $loader->prefixLengthsPsr4 = ComposerStaticInit228de02e5f1ae46db6ee3cf9691e2d7a::$prefixLengthsPsr4; 209 $loader->prefixDirsPsr4 = ComposerStaticInit228de02e5f1ae46db6ee3cf9691e2d7a::$prefixDirsPsr4; 210 $loader->classMap = ComposerStaticInit228de02e5f1ae46db6ee3cf9691e2d7a::$classMap; 211 211 212 212 }, null, ClassLoader::class); -
template-oriented-form-utilities/tags/0.0.2/vendor/monolog/monolog/composer.json
r3464549 r3464705 29 29 "guzzlehttp\/guzzle": "^7.4", 30 30 "guzzlehttp\/psr7": "^2.2", 31 "mongodb\/mongodb": "^1.8 ",31 "mongodb\/mongodb": "^1.8 || ^2.0", 32 32 "php-amqplib\/php-amqplib": "~2.4 || ^3", 33 33 "phpspec\/prophecy": "^1.15", -
template-oriented-form-utilities/tags/0.0.2/vendor/monolog/monolog/src/Monolog/ErrorHandler.php
r3464549 r3464705 137 137 protected function defaultErrorLevelMap(): array 138 138 { 139 return [\E_ERROR => LogLevel::CRITICAL, \E_WARNING => LogLevel::WARNING, \E_PARSE => LogLevel::ALERT, \E_NOTICE => LogLevel::NOTICE, \E_CORE_ERROR => LogLevel::CRITICAL, \E_CORE_WARNING => LogLevel::WARNING, \E_COMPILE_ERROR => LogLevel::ALERT, \E_COMPILE_WARNING => LogLevel::WARNING, \E_USER_ERROR => LogLevel::ERROR, \E_USER_WARNING => LogLevel::WARNING, \E_USER_NOTICE => LogLevel::NOTICE, \E_STRICT => LogLevel::NOTICE, \E_RECOVERABLE_ERROR => LogLevel::ERROR, \E_DEPRECATED => LogLevel::NOTICE, \E_USER_DEPRECATED => LogLevel::NOTICE]; 139 return [ 140 \E_ERROR => LogLevel::CRITICAL, 141 \E_WARNING => LogLevel::WARNING, 142 \E_PARSE => LogLevel::ALERT, 143 \E_NOTICE => LogLevel::NOTICE, 144 \E_CORE_ERROR => LogLevel::CRITICAL, 145 \E_CORE_WARNING => LogLevel::WARNING, 146 \E_COMPILE_ERROR => LogLevel::ALERT, 147 \E_COMPILE_WARNING => LogLevel::WARNING, 148 \E_USER_ERROR => LogLevel::ERROR, 149 \E_USER_WARNING => LogLevel::WARNING, 150 \E_USER_NOTICE => LogLevel::NOTICE, 151 2048 => LogLevel::NOTICE, 152 // E_STRICT 153 \E_RECOVERABLE_ERROR => LogLevel::ERROR, 154 \E_DEPRECATED => LogLevel::NOTICE, 155 \E_USER_DEPRECATED => LogLevel::NOTICE, 156 ]; 140 157 } 141 158 /** … … 236 253 case \E_USER_NOTICE: 237 254 return 'E_USER_NOTICE'; 238 case \E_STRICT:255 case 2048: 239 256 return 'E_STRICT'; 240 257 case \E_RECOVERABLE_ERROR: -
template-oriented-form-utilities/tags/0.0.2/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php
r3464549 r3464705 26 26 /** @var int */ 27 27 private $maxNestingLevel; 28 /** @var bool */29 private $isLegacyMongoExt;30 28 /** 31 29 * @param int $maxNestingLevel 0 means infinite nesting, the $record itself is level 1, $record['context'] is 2 … … 36 34 $this->maxNestingLevel = max($maxNestingLevel, 0); 37 35 $this->exceptionTraceAsString = $exceptionTraceAsString; 38 $this->isLegacyMongoExt = extension_loaded('mongodb') && version_compare((string) phpversion('mongodb'), '1.1.9', '<=');39 36 } 40 37 /** … … 109 106 protected function formatDate(\DateTimeInterface $value, int $nestingLevel): UTCDateTime 110 107 { 111 if ($this->isLegacyMongoExt) {112 return $this->legacyGetMongoDbDateTime($value);113 }114 return $this->getMongoDbDateTime($value);115 }116 private function getMongoDbDateTime(\DateTimeInterface $value): UTCDateTime117 {118 108 return new UTCDateTime((int) floor((float) $value->format('U.u') * 1000)); 119 109 } 120 /**121 * This is needed to support MongoDB Driver v1.19 and below122 *123 * See https://github.com/mongodb/mongo-php-driver/issues/426124 *125 * It can probably be removed in 2.1 or later once MongoDB's 1.2 is released and widely adopted126 */127 private function legacyGetMongoDbDateTime(\DateTimeInterface $value): UTCDateTime128 {129 $milliseconds = floor((float) $value->format('U.u') * 1000);130 $milliseconds = \PHP_INT_SIZE == 8 ? (int) $milliseconds : (string) $milliseconds;131 // @phpstan-ignore-next-line132 return new UTCDateTime($milliseconds);133 }134 110 } -
template-oriented-form-utilities/tags/0.0.2/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php
r3464549 r3464705 38 38 if (\false === in_array($curlErrno, self::$retriableErrorCodes, \true) || !$retries) { 39 39 $curlError = curl_error($ch); 40 if ( $closeAfterDone) {40 if (\PHP_VERSION_ID < 80000 && $closeAfterDone) { 41 41 curl_close($ch); 42 42 } … … 45 45 continue; 46 46 } 47 if ( $closeAfterDone) {47 if (\PHP_VERSION_ID < 80000 && $closeAfterDone) { 48 48 curl_close($ch); 49 49 } -
template-oriented-form-utilities/tags/0.0.2/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php
r3464549 r3464705 12 12 namespace TofuVendor\Monolog\Handler; 13 13 14 use TofuVendor\MongoDB\Client; 15 use TofuVendor\MongoDB\Collection; 14 16 use MongoDB\Driver\BulkWrite; 15 17 use MongoDB\Driver\Manager; 16 use TofuVendor\MongoDB\Client;17 use TofuVendor\Monolog\Logger;18 18 use TofuVendor\Monolog\Formatter\FormatterInterface; 19 19 use TofuVendor\Monolog\Formatter\MongoDBFormatter; 20 use TofuVendor\Monolog\Logger; 20 21 /** 21 22 * Logs to a MongoDB database. … … 33 34 class MongoDBHandler extends AbstractProcessingHandler 34 35 { 35 /** @var \MongoDB\Collection */36 /** @var Collection */ 36 37 private $collection; 37 38 /** @var Client|Manager */ 38 39 private $manager; 39 /** @var string */40 private $namespace ;40 /** @var string|null */ 41 private $namespace = null; 41 42 /** 42 43 * Constructor. … … 52 53 } 53 54 if ($mongodb instanceof Client) { 54 $this->collection = $mongodb->selectCollection($database, $collection);55 $this->collection = method_exists($mongodb, 'getCollection') ? $mongodb->getCollection($database, $collection) : $mongodb->selectCollection($database, $collection); 55 56 } else { 56 57 $this->manager = $mongodb; -
template-oriented-form-utilities/tags/0.0.2/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
r3464549 r3464705 142 142 // are cleaning up/rotating at the same time 143 143 set_error_handler(function (int $errno, string $errstr, string $errfile, int $errline): bool { 144 return \ false;144 return \true; 145 145 }); 146 146 unlink($file); -
template-oriented-form-utilities/tags/0.0.2/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php
r3464549 r3464705 186 186 protected function sendCurl(string $message): void 187 187 { 188 if ('' === trim($message)) { 189 return; 190 } 188 191 $ch = curl_init(); 189 192 $url = self::BOT_API . $this->apiKey . '/SendMessage'; -
template-oriented-form-utilities/tags/0.0.2/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php
r3464549 r3464705 58 58 return self::$cache; 59 59 } 60 $branches = `git branch -v --no-abbrev`;60 $branches = shell_exec('git branch -v --no-abbrev'); 61 61 if ($branches && preg_match('{^\* (.+?)\s+([a-f0-9]{40})(?:\s|$)}m', $branches, $matches)) { 62 62 return self::$cache = ['branch' => $matches[1], 'commit' => $matches[2]]; -
template-oriented-form-utilities/tags/0.0.2/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php
r3464549 r3464705 57 57 return self::$cache; 58 58 } 59 $result = explode(' ', trim( `hg id -nb`));59 $result = explode(' ', trim((string) shell_exec('hg id -nb'))); 60 60 if (count($result) >= 3) { 61 61 return self::$cache = ['branch' => $result[1], 'revision' => $result[2]]; -
template-oriented-form-utilities/tags/0.0.2/vendor/monolog/monolog/src/Monolog/SignalHandler.php
r3464549 r3464705 71 71 public function handleSignal(int $signo, $siginfo = null): void 72 72 { 73 /** @var array<int, string> $signals */ 73 74 static $signals = []; 74 75 if (!$signals && extension_loaded('pcntl')) { -
template-oriented-form-utilities/trunk/readme.txt
r3464549 r3464705 3 3 Tags: forms, utilities, template-oriented 4 4 Tested up to: 6.9 5 Requires PHP: 8. 26 Stable tag: 0.0. 15 Requires PHP: 8.1 6 Stable tag: 0.0.2 7 7 License: GPLv3 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.txt 9 9 10 Template-Oriented Form Utilities is a WordPress plugin that provides a set of utilities for handling forms in a template-oriented manner. It simplifies form creation, validation, and processing by leveraging templates for rendering and managing form data.10 Template-Oriented Form Utilities is a WordPress plugin that simplifies form creation, validation, and processing through template-based rendering and data management. 11 11 12 12 == Description == 13 13 14 14 Template-Oriented Form Utilities (TOFU) is designed to streamline the process of creating and managing forms within WordPress themes and plugins. By adopting a template-oriented approach, TOFU allows developers to define form structures and behaviors using reusable templates, making it easier to manage/maintain with team collaboration through version control systems. 15 16 GitHub and documentation for this plugin can be found at: 17 18 [https://github.com/lionheart-group/template-oriented-form-utilities](https://github.com/lionheart-group/template-oriented-form-utilities) 15 19 16 20 == External services == … … 58 62 59 63 * v0.0.1 - Initial release. 64 * v0.0.2 - Arranged required PHP version to 8.1, added external services section to the readme. 60 65 61 66 -
template-oriented-form-utilities/trunk/template-oriented-form-utilities.php
r3464549 r3464705 3 3 /** 4 4 * @link https://www.lionheart.co.jp/ 5 * @since 0.0.2 - Changed required PHP version to 8.1 5 6 * @since 0.0.1 6 7 * @package Tofu … … 10 11 * Plugin URI: https://lionheart-group.github.io/template-oriented-form-utilities/ 11 12 * Description: Template-Oriented Form Utilities is a WordPress plugin that provides a set of utilities for handling forms in a template-oriented manner. 12 * Version: 0.0. 113 * Version: 0.0.2 13 14 * Author: lionheartgroup 14 15 * Author URI: https://www.lionheart.co.jp/ … … 26 27 * Rename this for your plugin and update it as you release new versions. 27 28 */ 28 \define('TOFU_VERSION', '0.0. 1');29 \define('TOFU_VERSION', '0.0.2'); 29 30 \define('TOFU_PLUGIN_DIR', \plugin_dir_path(__FILE__)); 30 31 \define('TOFU_PLUGIN_FILE', __FILE__); -
template-oriented-form-utilities/trunk/vendor/autoload.php
r3464549 r3464705 20 20 require_once __DIR__ . '/composer/autoload_real.php'; 21 21 22 return ComposerAutoloaderInit daa68e1af038c1e02203ed3b72cc4ff3::getLoader();22 return ComposerAutoloaderInit228de02e5f1ae46db6ee3cf9691e2d7a::getLoader(); -
template-oriented-form-utilities/trunk/vendor/composer/autoload_real.php
r3464549 r3464705 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit daa68e1af038c1e02203ed3b72cc4ff35 class ComposerAutoloaderInit228de02e5f1ae46db6ee3cf9691e2d7a 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit daa68e1af038c1e02203ed3b72cc4ff3', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit228de02e5f1ae46db6ee3cf9691e2d7a', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit daa68e1af038c1e02203ed3b72cc4ff3', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit228de02e5f1ae46db6ee3cf9691e2d7a', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit daa68e1af038c1e02203ed3b72cc4ff3::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit228de02e5f1ae46db6ee3cf9691e2d7a::getInitializer($loader)); 31 31 32 32 $loader->setClassMapAuthoritative(true); -
template-oriented-form-utilities/trunk/vendor/composer/autoload_static.php
r3464549 r3464705 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit daa68e1af038c1e02203ed3b72cc4ff37 class ComposerStaticInit228de02e5f1ae46db6ee3cf9691e2d7a 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 206 206 { 207 207 return \Closure::bind(function () use ($loader) { 208 $loader->prefixLengthsPsr4 = ComposerStaticInit daa68e1af038c1e02203ed3b72cc4ff3::$prefixLengthsPsr4;209 $loader->prefixDirsPsr4 = ComposerStaticInit daa68e1af038c1e02203ed3b72cc4ff3::$prefixDirsPsr4;210 $loader->classMap = ComposerStaticInit daa68e1af038c1e02203ed3b72cc4ff3::$classMap;208 $loader->prefixLengthsPsr4 = ComposerStaticInit228de02e5f1ae46db6ee3cf9691e2d7a::$prefixLengthsPsr4; 209 $loader->prefixDirsPsr4 = ComposerStaticInit228de02e5f1ae46db6ee3cf9691e2d7a::$prefixDirsPsr4; 210 $loader->classMap = ComposerStaticInit228de02e5f1ae46db6ee3cf9691e2d7a::$classMap; 211 211 212 212 }, null, ClassLoader::class); -
template-oriented-form-utilities/trunk/vendor/monolog/monolog/composer.json
r3464549 r3464705 29 29 "guzzlehttp\/guzzle": "^7.4", 30 30 "guzzlehttp\/psr7": "^2.2", 31 "mongodb\/mongodb": "^1.8 ",31 "mongodb\/mongodb": "^1.8 || ^2.0", 32 32 "php-amqplib\/php-amqplib": "~2.4 || ^3", 33 33 "phpspec\/prophecy": "^1.15", -
template-oriented-form-utilities/trunk/vendor/monolog/monolog/src/Monolog/ErrorHandler.php
r3464549 r3464705 137 137 protected function defaultErrorLevelMap(): array 138 138 { 139 return [\E_ERROR => LogLevel::CRITICAL, \E_WARNING => LogLevel::WARNING, \E_PARSE => LogLevel::ALERT, \E_NOTICE => LogLevel::NOTICE, \E_CORE_ERROR => LogLevel::CRITICAL, \E_CORE_WARNING => LogLevel::WARNING, \E_COMPILE_ERROR => LogLevel::ALERT, \E_COMPILE_WARNING => LogLevel::WARNING, \E_USER_ERROR => LogLevel::ERROR, \E_USER_WARNING => LogLevel::WARNING, \E_USER_NOTICE => LogLevel::NOTICE, \E_STRICT => LogLevel::NOTICE, \E_RECOVERABLE_ERROR => LogLevel::ERROR, \E_DEPRECATED => LogLevel::NOTICE, \E_USER_DEPRECATED => LogLevel::NOTICE]; 139 return [ 140 \E_ERROR => LogLevel::CRITICAL, 141 \E_WARNING => LogLevel::WARNING, 142 \E_PARSE => LogLevel::ALERT, 143 \E_NOTICE => LogLevel::NOTICE, 144 \E_CORE_ERROR => LogLevel::CRITICAL, 145 \E_CORE_WARNING => LogLevel::WARNING, 146 \E_COMPILE_ERROR => LogLevel::ALERT, 147 \E_COMPILE_WARNING => LogLevel::WARNING, 148 \E_USER_ERROR => LogLevel::ERROR, 149 \E_USER_WARNING => LogLevel::WARNING, 150 \E_USER_NOTICE => LogLevel::NOTICE, 151 2048 => LogLevel::NOTICE, 152 // E_STRICT 153 \E_RECOVERABLE_ERROR => LogLevel::ERROR, 154 \E_DEPRECATED => LogLevel::NOTICE, 155 \E_USER_DEPRECATED => LogLevel::NOTICE, 156 ]; 140 157 } 141 158 /** … … 236 253 case \E_USER_NOTICE: 237 254 return 'E_USER_NOTICE'; 238 case \E_STRICT:255 case 2048: 239 256 return 'E_STRICT'; 240 257 case \E_RECOVERABLE_ERROR: -
template-oriented-form-utilities/trunk/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php
r3464549 r3464705 26 26 /** @var int */ 27 27 private $maxNestingLevel; 28 /** @var bool */29 private $isLegacyMongoExt;30 28 /** 31 29 * @param int $maxNestingLevel 0 means infinite nesting, the $record itself is level 1, $record['context'] is 2 … … 36 34 $this->maxNestingLevel = max($maxNestingLevel, 0); 37 35 $this->exceptionTraceAsString = $exceptionTraceAsString; 38 $this->isLegacyMongoExt = extension_loaded('mongodb') && version_compare((string) phpversion('mongodb'), '1.1.9', '<=');39 36 } 40 37 /** … … 109 106 protected function formatDate(\DateTimeInterface $value, int $nestingLevel): UTCDateTime 110 107 { 111 if ($this->isLegacyMongoExt) {112 return $this->legacyGetMongoDbDateTime($value);113 }114 return $this->getMongoDbDateTime($value);115 }116 private function getMongoDbDateTime(\DateTimeInterface $value): UTCDateTime117 {118 108 return new UTCDateTime((int) floor((float) $value->format('U.u') * 1000)); 119 109 } 120 /**121 * This is needed to support MongoDB Driver v1.19 and below122 *123 * See https://github.com/mongodb/mongo-php-driver/issues/426124 *125 * It can probably be removed in 2.1 or later once MongoDB's 1.2 is released and widely adopted126 */127 private function legacyGetMongoDbDateTime(\DateTimeInterface $value): UTCDateTime128 {129 $milliseconds = floor((float) $value->format('U.u') * 1000);130 $milliseconds = \PHP_INT_SIZE == 8 ? (int) $milliseconds : (string) $milliseconds;131 // @phpstan-ignore-next-line132 return new UTCDateTime($milliseconds);133 }134 110 } -
template-oriented-form-utilities/trunk/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php
r3464549 r3464705 38 38 if (\false === in_array($curlErrno, self::$retriableErrorCodes, \true) || !$retries) { 39 39 $curlError = curl_error($ch); 40 if ( $closeAfterDone) {40 if (\PHP_VERSION_ID < 80000 && $closeAfterDone) { 41 41 curl_close($ch); 42 42 } … … 45 45 continue; 46 46 } 47 if ( $closeAfterDone) {47 if (\PHP_VERSION_ID < 80000 && $closeAfterDone) { 48 48 curl_close($ch); 49 49 } -
template-oriented-form-utilities/trunk/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php
r3464549 r3464705 12 12 namespace TofuVendor\Monolog\Handler; 13 13 14 use TofuVendor\MongoDB\Client; 15 use TofuVendor\MongoDB\Collection; 14 16 use MongoDB\Driver\BulkWrite; 15 17 use MongoDB\Driver\Manager; 16 use TofuVendor\MongoDB\Client;17 use TofuVendor\Monolog\Logger;18 18 use TofuVendor\Monolog\Formatter\FormatterInterface; 19 19 use TofuVendor\Monolog\Formatter\MongoDBFormatter; 20 use TofuVendor\Monolog\Logger; 20 21 /** 21 22 * Logs to a MongoDB database. … … 33 34 class MongoDBHandler extends AbstractProcessingHandler 34 35 { 35 /** @var \MongoDB\Collection */36 /** @var Collection */ 36 37 private $collection; 37 38 /** @var Client|Manager */ 38 39 private $manager; 39 /** @var string */40 private $namespace ;40 /** @var string|null */ 41 private $namespace = null; 41 42 /** 42 43 * Constructor. … … 52 53 } 53 54 if ($mongodb instanceof Client) { 54 $this->collection = $mongodb->selectCollection($database, $collection);55 $this->collection = method_exists($mongodb, 'getCollection') ? $mongodb->getCollection($database, $collection) : $mongodb->selectCollection($database, $collection); 55 56 } else { 56 57 $this->manager = $mongodb; -
template-oriented-form-utilities/trunk/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php
r3464549 r3464705 142 142 // are cleaning up/rotating at the same time 143 143 set_error_handler(function (int $errno, string $errstr, string $errfile, int $errline): bool { 144 return \ false;144 return \true; 145 145 }); 146 146 unlink($file); -
template-oriented-form-utilities/trunk/vendor/monolog/monolog/src/Monolog/Handler/TelegramBotHandler.php
r3464549 r3464705 186 186 protected function sendCurl(string $message): void 187 187 { 188 if ('' === trim($message)) { 189 return; 190 } 188 191 $ch = curl_init(); 189 192 $url = self::BOT_API . $this->apiKey . '/SendMessage'; -
template-oriented-form-utilities/trunk/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php
r3464549 r3464705 58 58 return self::$cache; 59 59 } 60 $branches = `git branch -v --no-abbrev`;60 $branches = shell_exec('git branch -v --no-abbrev'); 61 61 if ($branches && preg_match('{^\* (.+?)\s+([a-f0-9]{40})(?:\s|$)}m', $branches, $matches)) { 62 62 return self::$cache = ['branch' => $matches[1], 'commit' => $matches[2]]; -
template-oriented-form-utilities/trunk/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php
r3464549 r3464705 57 57 return self::$cache; 58 58 } 59 $result = explode(' ', trim( `hg id -nb`));59 $result = explode(' ', trim((string) shell_exec('hg id -nb'))); 60 60 if (count($result) >= 3) { 61 61 return self::$cache = ['branch' => $result[1], 'revision' => $result[2]]; -
template-oriented-form-utilities/trunk/vendor/monolog/monolog/src/Monolog/SignalHandler.php
r3464549 r3464705 71 71 public function handleSignal(int $signo, $siginfo = null): void 72 72 { 73 /** @var array<int, string> $signals */ 73 74 static $signals = []; 74 75 if (!$signals && extension_loaded('pcntl')) {
Note: See TracChangeset
for help on using the changeset viewer.