Members
name :string
- Source:
Name of the service provider.
Will be use for display only.
Methods
(static) publishableProviders()
- Source:
Get all service providers that publish content.
Returns:
The publishable service provider instances.
- Type
- Array.<foundation.ServiceProvider>
(static) publishableTags()
- Source:
Get all tags for published content.
Returns:
The publishable tags.
- Type
- Array.<string>
(static) getPublishableByProvider(provider)
- Source:
Get all publishable files and folders for a given provider.
Parameters:
Name | Type | Description |
---|---|---|
provider |
foundation.ServiceProvider | The service provider instance. |
Returns:
A dictionary associating the source paths to the destination paths.
- Type
- object.<string, string>
(static) getPublishableByTag(tag)
- Source:
Get all publishable files and folders for a given tag.
Parameters:
Name | Type | Description |
---|---|---|
tag |
string | The tag to get pûblishables from. |
Returns:
A dictionary associating the source paths to the destination paths.
- Type
- object.<string, string>
(static) getAllPublishable()
- Source:
Get all publishable files and folders.
Returns:
A dictionary associating the source paths to the destination paths.
- Type
- object.<string, string>
loadConfig(configPath)
Load configuration file from given folder path.
Parameters:
Name | Type | Description |
---|---|---|
configPath |
string | The configuration folder path. |
Returns:
The current service provider instance.
loadCommands(commands)
Load commands into the registrar.
Parameters:
Name | Type | Description |
---|---|---|
commands |
Array.<function()> | List of all commands that must be registered. |
Returns:
The current service provider instance.
loadTranslations(translationsPath)
Load translations into the translator.
Parameters:
Name | Type | Description |
---|---|---|
translationsPath |
string | The translations folder path. |
Returns:
The current service provider instance.
loadViews(viewsPath, namespaceopt)
Add views path in the resolver.
If given, it will add the views path as a namespace.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
viewsPath |
string | The views path. | |
namespace |
string |
<optional> |
The views namespace. |
Returns:
The current service provider instance.
publish(publications, tagopt)
Publish paths, with an optional tag.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
publications |
object.<string, string> | Dictionary representing the published paths, the "from" as keys and the "to" as values. | |
tag |
string |
<optional> |
The tag to give to the publications. |
Returns:
The current service provider instance.
publishAssets(staticPath, folderopt)
Publish static assets from given absolute folder path.
Can store assets in a subfolder of the application's public directory if needed.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
staticPath |
string | The absolute assets folder path to publish. | ||
folder |
string |
<optional> |
""
|
The folder to store the assets when publishing. |
Returns:
The current service provider instance.
publishConfig(configPath)
Publish configuration files from given absolute folder path.
Parameters:
Name | Type | Description |
---|---|---|
configPath |
string | The absolute configuration folder path to publish. |
Returns:
The current service provider instance.
publishMigrations(migrationsPath)
Publish migration stub files from given absolute folder path.
Will only accept ".stub" files.
Parameters:
Name | Type | Description |
---|---|---|
migrationsPath |
string | The absolute migrations folder path to publish. |
Returns:
The current service provider instance.
publishTranslations(translationsPath)
Publish translations files from given absolute folder path.
Parameters:
Name | Type | Description |
---|---|---|
translationsPath |
string | The absolute translations folder path to publish. |
Returns:
The current service provider instance.
publishViews(viewsPath, folderopt)
Publish views files from given absolute folder path.
Can store views in a subfolder of the application's views directory if needed.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
viewsPath |
string | The absolute views folder path to publish. | ||
folder |
string |
<optional> |
""
|
The folder to store the views when publishing. |
Returns:
The current service provider instance.
loadAndPublishConfig(configPath)
Load and publish configuration files.
Parameters:
Name | Type | Description |
---|---|---|
configPath |
string | The configuration folder path. |
Returns:
The current service provider instance.
loadAndPublishTranslations(translationsPath)
Load and publish translations from folder path.
Parameters:
Name | Type | Description |
---|---|---|
translationsPath |
string | The translations folder path. |
Returns:
The current service provider instance.
loadAndPublishViews(viewsPath, namespaceopt)
Load and publish views with namespace from folder path, with an optional folder destination name.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
viewsPath |
string | The absolute views folder path. | |
namespace |
string |
<optional> |
The views namespace for resolver and the folder to create for publishing. |
Returns:
The current service provider instance.