IoC容器實作(練習,參考illuminate/container)