PluginProbe
404 Solution / 4.3.3
404 Solution v4.3.3
4.3.5 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.2.0 4.1.19 4.1.18 4.1.17 4.1.16 4.1.15 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.1.7 4.1.6 4.1.5 4.1.4 4.1.3 trunk 2.30.0 All 109 releases
404-solution / includes / php / FunctionsMBString.php

FunctionsMBString.php in 404 Solution 4.3.3, at includes/php/FunctionsMBString.php

35 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 if (!defined('ABSPATH')) {
5 exit;
6 }
7
8 /**
9 * Backward-compatibility shim. New code should construct
10 * ABJ_404_Solution_Functions directly with explicit MbStringAdapter and
11 * RegexHelper instances (or depend on those adapters alone if the
12 * kitchen-sink Functions surface is not needed).
13 *
14 * Wires Functions to the Mb variants of MbStringAdapter and RegexHelper so
15 * the polymorphic primitives use the mbstring extension. The class itself
16 * has no extra behavior beyond adapter selection - the legacy inheritance
17 * pattern (abstract Functions + concrete subclass per platform) has been
18 * replaced with composition (Functions holds the adapters).
19 */
20 class ABJ_404_Solution_FunctionsMBString extends ABJ_404_Solution_Functions {
21
22 /**
23 * @param ABJ_404_Solution_Logging|null $logging
24 * @param ABJ_404_Solution_RequestContext|null $requestContext
25 */
26 public function __construct($logging = null, $requestContext = null) {
27 parent::__construct(
28 $logging,
29 $requestContext,
30 ABJ_404_Solution_MbStringAdapterMb::getInstance(),
31 ABJ_404_Solution_RegexHelperMb::getInstance()
32 );
33 }
34 }
35