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:----oC+rG5O+o3eeFDgbH/Qr18Xy6hm5qGddkkQJMQsLbLglq6fxqhL849xRdRVxFdWVwClkr3e16xTPD7McUi59RyAHmZGcziYE9fjr/yt5SrAdfybF7n2HRF1G5FfahkiulK1/SwVXIDwsqiRcaidJTCPpcTOxAie3MI4oF3muwT1cMuX8cKWhkEmDcSXij10uJ9RyfkVevaNrgJgl+hvT3RczX7PSQ+w217IB6EOMBbfvk3Qy252JAa8ntDLNYp7KRug7U05uw9eRQJWwt0OT5zQ8II3AQTpS/M3URE+yDDfj0U5/Fr4pL8m2GZjBc9IuT8eMO4sQYNAQH2sMBWa3JT/RK+Qym/BQKFIIgFahTCEVBOFZ0BPjLaNOWeImWogVvF7amUVyREHltPbzW4FOlqGsT6rZsutILG+gYhJQs2CD+nRvgyod4VFqOaZvcjXJM8XYvePgQslFW4f+DFIr1PejeOWgOGuna5SUK0o1mRNg16pGpvSUjUjk3o7A8Mry1WzZx61L+xyqnqzTok4OCwxwrnWGMXmKANaGbuULuMrKGq/IuzfbO213U8w+KJzepy6rVE0xuKwuyQITgRRYc+4jjXYRCorymk+1DKu7A6r/BevLx6WQY7dHhmV9vnnIjaFCMC1/YO4+MKgQoF6pkykpNxS5vCEdzsezRFOxx2A=----ATTACHMENT:----MjkwNTQ2NjU4MjI2NjU4NCA2Mjc0NzM3MzA3NjY3MzkgNDM4NDM1MTMzMjA2NDgwNg==