@absolunet/ioc2.1.0

View on GitHub

Resolver

Database path resolver that links the database path configuration through the container and allows resolving without the container.

Members

(static) dependencies :Array.<string>

Source:
Class dependencies: ['app', 'config', 'config.grammar', 'helper.string'].

Methods

resolvePaths()

Source:
Get configured paths for the database files.
Returns:
The paths for every database folders.
Type
Object

resolvePath(name)

Source:
Get specific database files path.
Parameters:
Name Type Description
name string The database folder name.
Returns:
The requested database folder path.
Type
string

resolveSourcePaths()

Source:
Get configured source paths for the database files.
Returns:
The paths for every database folders.
Type
Object

resolveSourcePath(name)

Source:
Get specific database files source path.
Parameters:
Name Type Description
name string The database folder name.
Returns:
The requested database source folder path.
Type
string

bindPaths()

Source:
Bind paths into application. This will bind "path.factory", "path.model", "path.migration", "path.seed" and other configured paths within "database.paths" configuration for execution. It will also bind "path.src.factory", "path.src.model", "path.src.migration", "path.src.seed" and other configured paths within "database.paths" configuration for scaffolding. The path keys will be converted to their singular form.