| 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 |
|