package ru.soune.nocopy.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import ru.soune.ReferralLevelProvider;
import ru.soune.ReferralRepo;
import ru.soune.ReferralService;

@Configuration
public class ReferralConfig {

    @Bean
    public ReferralService referralService(ReferralLevelProvider referralLevelProvider, ReferralRepo referralRepo) {
        return new ReferralService(referralLevelProvider, referralRepo);
    }
}
