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:----vLQnntJjxAxfwvsK8UNWqCl8euQstNUxu9fOAChmIp63kWMYZV2Yc8DtcBmvUlg6IAyaujJSBDCn7XQHDOagIRnxGPm13ukTCnTyNIPgypYy3B8YUj5U6bjovOGFCJYAder6pj0Gy7TODb8y01KmIemSyqqmOdylgORmfqX7FJQZDUHEgoROSUsn0EyoI+Yu6L1+SvukkblEhNCnwUUtdSLHhAz+4OwiZ0zftfU7wL7lij9sPtbKF86shy49ZLAcz/oxQ/HiRc0r4ccNFzaHCT7VfZfEVB9XeTY5kwydTjtyvXgB+MLdyVeVTEhLu1DfILrhMjd4PasaOm4G9okAAwVxX4Md0aoSjYUoDM3vHtV8Qm+uHlxWOCSnibbKpzn0hwi1IlX6iuo4NF0vOTHWNszjzp/gCYmwfDmqE7PK2Y0oYXk7Y7+oQ9Xho5BqYM17tfIXDRg5Nuf6nFl943cE1dN1okG6ajtxNTn3eBd/9BOnnsdcTZ7R9y++we3n6HqAA7gHq4vHJ4Xh8J2jpPdCRRLLSCDo2qML0Z7aDt/WxTfxB4cXj0E5uqGiB5JXaTSpjNzwjBQRqvFZqelQ09r+FtSU0Yk7VRYlhY7sABL/nijmo+gxOgwnxhZZ22nIn03Uxol1KhzHvWEJYC+ybq+MqlNIPLmF7x7bpfmmU/cGFvI=----ATTACHMENT:----OTM5OTY2Nzg4Mzg2Mjk2IDc5NDY4NjQ0MDU1MTgyMjMgMzkwOTA3NzIzNzUxNTM0Ng==