Adrià Vilanova MartÃnez | 58cc67c | 2024-04-21 16:43:01 +0200 | [diff] [blame] | 1 | import DependenciesProviderSingleton, { Dependency } from "../../dependenciesProvider/DependenciesProvider"; |
| 2 | import Script from "../Script"; |
| 3 | |
| 4 | export default abstract class SetUpDependenciesScript extends Script { |
| 5 | abstract dependencies: Dependency[]; |
| 6 | |
| 7 | execute() { |
| 8 | const dependenciesProvider = DependenciesProviderSingleton.getInstance(); |
| 9 | this.dependencies.forEach(dependency => { |
| 10 | dependenciesProvider.setUpDependency(dependency); |
| 11 | }); |
| 12 | } |
| 13 | } |