chore(architecture): deprecate some of the new architecture
In order to use Dependency Injection, we need to deprecate old classes
which aren't suitable for it, and which will be replaced by other ones
in followup commits.
Bug: twpowertools:226
Change-Id: I232bd9f036b6fb540eba27d7586d8054ce3de789
diff --git a/src/common/architecture/entrypoint/EntrypointScriptRunner.ts b/src/common/architecture/entrypoint/EntrypointScriptRunner.ts
index 02ce31e..e839168 100644
--- a/src/common/architecture/entrypoint/EntrypointScriptRunner.ts
+++ b/src/common/architecture/entrypoint/EntrypointScriptRunner.ts
@@ -1,14 +1,17 @@
import Features from '../../../features/Features';
import StandaloneScripts from '../../../scripts/Scripts';
import ScriptProvider from '../scripts/ScriptProvider';
-import ScriptRunner from '../scripts/ScriptRunner';
+import LegacyScriptRunner from '../scripts/LegacyScriptRunner';
import { Context } from './Context';
+/**
+ * @deprecated
+ */
export default class EntrypointScriptRunner {
- private scriptRunner: ScriptRunner;
+ private scriptRunner: LegacyScriptRunner;
constructor(public context: Context) {
- this.scriptRunner = new ScriptRunner();
+ this.scriptRunner = new LegacyScriptRunner();
this.addScriptProvider(new Features());
this.addScriptProvider(new StandaloneScripts());
}