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:----ZvJbD90U1EBsnAQ++8MoPggfBLfLGmJ33VHLrH7Nc3EZSSxp9D+O491OquL3fBA6ztOXuLOEPjcBGVOGK54pLVsLbyLtMyQmBzObr+fRFBZjIPsHyXWJ9oALR4ZT5/RpjWRAmh+I2gXk2T2sh4072fs8GStG8PMmZVxMlmT5fsU0KnEM3+aJ19vize7Zx4IDsfiX6neg16m3ut3qPONQTcnbbbQ+OGaBpFKap0iPjDCmAly2PtblTq51DcyMNHyUXRLyr3L87DFUtgtjprTGAZWqmF83B2iFIvljRALPy+Sgvu7dPk/EMKM5KVI5tFjr5xBwtGn6U4DTqz3B0CoXvjuqJXZ94hIr+AIitzHbqXEUm6N6T+pOzNKv/tU1LNHNYk345K/UJXFfj7zMzip/T2hMAO052xtOM1MH/kwzj91If0z5VBWBn1wWhxtenk2Gj0Yf0/2cw1hTYcCEYKz2xWfxK+dDlD3GWSH2rXqaj/lAIAC4ob/ZZk+EwrthPDKgB1ihFpS8Jsl/GRiFslzfWmmX+W0m9Xx7lMbiBcdOz47KFa+/0f4iilExPdL8cGbuezN5ubmDPG/DxoOmBwRp2c7+gdc4We1iItAuKXu/F98A+8WKxflJdbXo4gStDau9j+scEeiCw9cm660yxeSqoLhntdkXyK2sNs0j619/GzM=----ATTACHMENT:----NzYyMTMzNjg0NzMyMjAwOCA3MjgwNDg4NDExMjAxNjU1IDIwNDY1MjA5MDM1Nzg5NDA=