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:----TVaoVT9qqUQC7zdAotFm3vvdP/6zZBfYdc+ppXQirpkHdtndcXZXvhqN+JTltWEtsTM+aw8fhmqayFNOM6i6QucoNO9nN50VYV1Jt0r5S+H1IxpE8vlZuiiXtyC1+MQypSorh7RI9H8eBNLddk71p35lUwrAwW0st2FMplSV2M0oNAQ6RyflxsXSMc4bbp0kU0McEKpqBlfu8UIIA0N9et5yRIsHlSTizkFWyFKeKTwgP76pOPuJ2ol1ovDmkekgBIKTw/DeObLdokaFUO49DFQBWl7YMRbv3e4wZMEDHLNC4B216dfu9WqOKb5RziisPCa8hat+ctLFgFAx9D5xTs2Duii9FoGHvU3QK6qFYwzqntsAdUD+Y5+9pk87kaNhS3j16qzytTNjdLfBK//jOtHiB3q620rFXHVR8nnohMfPD4Yp4lMIyKI2BLIpYsVScSpbAV9f3xdJuczfZTZprfBpqA8VjFTmIJAdEPFzmQwRlMCY0EzhWhELHeOeBnrzL8cpWq7+cJelPD6tQBwJeO38NFz+Eo96WnoSLX6n1PusEuRUaLhM59s/tbYxLlMdt4RcfQjNg5XtTLw1g7VYTY50GK8tT+wYGFYWnLQY6+X7Gt9Oa76XxBar2KS1LsPM5uADA+Jbtf3sil3l44jx1FZomT75xUeX+wCCU0juIgc=----ATTACHMENT:----NDIwNTM1MTIxOTQ1MjcxMSA4NjEzOTczNjUzNjI4OTY5IDcwMTE2NzM1MjA2ODg5Nw==