/** * Factory method (not injector factory method - this is called by CheckfrontAPIImplementationFactory). * @param $params * @return CheckfrontAPIImplementation */ public static function create($params) { // in 3.0 configuration is specified as array to constructor so we build the config array // and pass, other option could be to create the API first and then pass to the configure methods on // config and authenticator $config = array_merge(CheckfrontModule::api_config()->configure(), CheckfrontModule::api_authenticator()->configure(), $params); return new self($config); }