You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2020. It is now read-only.
Resulting with a module in the default src folder with a folder name ModuleName and a namespace Vendor\Project\ModuleName and a ConfigProvider like the following:
<?phpdeclare(strict_types=1);
namespaceVendor\Project\ModuleName;
/** * The configuration provider for the ModuleName module * * @see https://docs.zendframework.com/zend-component-installer/ */class ConfigProvider
{
/** * Returns the configuration array * * To add a bit of a structure, each section is defined in a separate * method which returns an array with its configuration. */publicfunction__invoke() : array
{
return [
'dependencies' => $this->getDependencies(),
'templates' => $this->getTemplates(),
];
}
/** * Returns the container dependencies */publicfunctiongetDependencies() : array
{
return [
'invokables' => [
],
'factories' => [
],
];
}
/** * Returns the templates configuration */publicfunctiongetTemplates() : array
{
return [
'paths' => [
'modulename' => [__DIR__ . '/../templates/'],
],
];
}
}