Skip to content

Commit fc00ee6

Browse files
authored
Merge pull request #3 from php-flasher/feat/template-factories
add template factories
2 parents 9cf8344 + d6fb3bc commit fc00ee6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/flasher.ts

+4
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ export default class Flasher {
112112
}
113113

114114
public create(alias: string): FlasherInterface | undefined {
115+
if (0 === alias.indexOf('template.')) {
116+
return this.factories.get('template');
117+
}
118+
115119
return this.factories.get(alias);
116120
}
117121

0 commit comments

Comments
 (0)