using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace CalledIt.Util;

public static class DependencyInjectionModuleExtensions
{
    public static IServiceCollection RegisterModule<T>(this IServiceCollection services, IConfiguration configuration) where T : DependencyInjectionModule, new()
    {
        return new T().Load(services, configuration);
    }
}
