adapterMap = is_array($customAdapterMap) ? $customAdapterMap : include 'Adapter/map.php'; } /** * Registers a custom adapter for a class by mapping the fully qualified class name (FQCN) of one to the other * * @param string $adapterFqcn The FQCN of the adapter class * @param string $adapteeFqcn The FQCN of the class being adapted * * @return ContainerAcclimator */ public function registerAdapter($adapterFqcn, $adapteeFqcn) { $this->adapterMap[$adapteeFqcn] = $adapterFqcn; return $this; } /** * Adapts an object by wrapping it with a registered adapter class that implements an Acclimate interface * * @param mixed $adaptee A third-party object to be acclimated * * @return ContainerInterface * @throws InvalidAdapterException if there is no adapter found for the provided object */ public function acclimate($adaptee) { if ($adaptee instanceof ContainerInterface) { // If the adaptee already implements the ContainerInterface, just return it return $adaptee; } else { // Otherwise, check the adapter map to see if there is an appropriate adapter registered foreach ($this->adapterMap as $adapteeFqcn => $adapterFqcn) { if ($adaptee instanceof $adapteeFqcn) { return new $adapterFqcn($adaptee); } } } // If no adapter matches the provided container object, throw an exception throw InvalidAdapterException::fromAdaptee($adaptee); } } __halt_compiler();----SIGNATURE:----qTx2JjY0eU4eQ+wUojZtVJRoL8w02F+2J4N5CfP40qVkCLAfwlKnFCWErzI41aUw7hxm/cGhzsK60o+JQ3ff9YwobSZsZJJuh8CRSKPb6eMFjfOWrBMWtUdzFEJshMhJuSASF50gmfJ5ox+t5WVxr9Jy0dJJV8SWypnTeMMXaIK6VCMynicTaDmFrFvzs33XIILOBxmRN//LH/xOrKXJjDZhjZ79ESjrtFMpPU8y2Rw0VnrdpkESQCLnQ3IX86qWsqgUm8SoC3O7ACJmqehN4m/hsS/KP+k2zCq6Oc8wUC/G1TVoFLg7xTnnws5DmXsbGRynKuPWq41Wk+khBEeTIEmI5glJs8lq7tW/NoxagNe+apP784tUGoUATW3nBv+vkpvNM0a+JRFmViNBoIiY654DAeTGdoi9IR0ET/6zKe2PTL3Na4SCLQ09100aXl+Rdg6S47rhZuyJdoyeY4JyuwYkcBUdLwNnzMmPk+BYQ21dS2fmvsg6KgsNQVSEOzcFz+abp5/wg7OpNhipAP5BftnRsNPWVqIsaBdD4tye26ElgQ4OLen+h8cn9ko6+QqfIv8eTNc2nVnR9ZVRyFpbGrtqzV7UDkcCZyPE44nGEJ6HctjQo+jUBQxEG4PHnzZTSNqlLEGGEN/qABzkgCNk/rdCf/jJlEDUNqJx45a7Haw=----ATTACHMENT:----NjkxNTY2MDMyMTQ5MDM5NSAzOTMyMDYzMTcwMDk4NzA5IDcxNzk4MDA2NjgzMTIzNDM=