protected function serializeConfig($configSerializer)
    {
        if ($configSerializer instanceof ITripodConfigSerializer) {
            return $configSerializer->serialize();
        } elseif (is_array($configSerializer)) {
            return $configSerializer;
        } else {
            throw new \InvalidArgumentException(
                '$configSerializer must an ITripodConfigSerializer or array'
            );
        }
    }
protected function serializeConfig($configSerializer)
    {
        if ($configSerializer instanceof ITripodConfigSerializer) {
            return $configSerializer->serialize();
        } elseif (is_array($configSerializer)) {
            return $configSerializer;
        } else {
            throw new \InvalidArgumentException(
                '$configSerializer must an ITripodConfigSerializer or array'
            );
        }
    }
protected function serializeConfig ( $ configSerializer ) { if ( $ configSerializer instanceof ITripodConfigSerializer ) { return $ configSerializer -> serialize ( ) ; } elseif ( is_array ( $ configSerializer ) ) { return $ configSerializer ; } else { throw new \ InvalidArgumentException ( '$configSerializer must an ITripodConfigSerializer or array' ) ; } }
Take a Tripod Config Serializer and return a config array

@param ITripodConfigSerializer|array $configSerializer An object that implements ITripodConfigSerializer
@return array
Take a Tripod Config Serializer and return a config array