1 | import { IocContract, IocResolverLookupNode, IocResolverContract } from '../Contracts';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | export declare class IocResolver implements IocResolverContract<any> {
|
7 | private container;
|
8 | private fallbackMethod?;
|
9 | private rcNamespaceKey?;
|
10 | private fallbackNamespace?;
|
11 | private lookupCache;
|
12 | |
13 |
|
14 |
|
15 |
|
16 | private prefixNamespace;
|
17 | constructor(container: IocContract, fallbackMethod?: string | undefined, rcNamespaceKey?: string | undefined, fallbackNamespace?: string | undefined);
|
18 | /**
|
19 | * Returns the prefix namespace by giving preference to the
|
20 | * `.adonisrc.json` file
|
21 | */
|
22 | private getPrefixNamespace;
|
23 | /**
|
24 | * Resolves the namespace and returns it's lookup node
|
25 | */
|
26 | resolve(namespace: string, prefixNamespace?: string | undefined): IocResolverLookupNode<string>;
|
27 | /**
|
28 | * Calls the namespace.method expression with any arguments that needs to
|
29 | * be passed. Also supports type-hinting dependencies.
|
30 | */
|
31 | call(namespace: string | IocResolverLookupNode<string>, prefixNamespace?: string, args?: any[] | ((instance: any) => any[])): Promise<any>;
|
32 | }
|