package com.huangzj.server.module;

import com.huangzj.server.config.AppProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DemoPlayerHostBean {

    @Bean
    public DemoPlayerHost demoPlayerHost(AppProperties appProperties) {
        return new DemoPlayerHost(appProperties.getModule().getPlayerId());
    }
}
