import AbstractFactory from '../../../../di/src/factory/AbstractFactory.ts' import MemorySession from './MemorySession.ts' import Session from './Session.ts' import {DependencyRequirement} from '../../../../di/src/type/DependencyRequirement.ts' import {Collection} from '../../collection/Collection.ts' // TODO support configurable session backends export default class SessionFactory extends AbstractFactory { constructor() { super({}) } produce(dependencies: any[], parameters: any[]): any { return new MemorySession() } match(something: any) { return something === Session } get_dependency_keys(): Collection { return new Collection() } }