* Update module generation #714 * Fix method signatures * Fix paths within stubs, use single provider.stub file * Add separate index controller * Update module generation #714 * Fix method signatures * Fix paths within stubs, use single provider.stub file * Update module generation Disable/lower the cache time as found as a workaround in https://github.com/nWidart/laravel-modules/issues/995 * Update editorconfig for line endings * Formatting * Formatting
This commit is contained in:
@@ -17,9 +17,10 @@ return [
|
||||
'views/frontend' => 'Resources/views/layouts/frontend.blade.php',
|
||||
'views/admin' => 'Resources/views/layouts/admin.blade.php',
|
||||
'listener-test' => 'Listeners/TestEventListener.php',
|
||||
'controller-index' => 'Http/Controllers/Frontend/IndexController.php',
|
||||
'controller-api' => 'Http/Controllers/Api/ApiController.php',
|
||||
'controller-admin' => 'Http/Controllers/Admin/AdminController.php',
|
||||
'scaffold/config' => 'Config/config.php',
|
||||
'config' => 'Config/config.php',
|
||||
'composer' => 'composer.json',
|
||||
],
|
||||
'replacements' => [
|
||||
@@ -27,22 +28,45 @@ return [
|
||||
'routes' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
||||
'routes-api' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
||||
'json' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
||||
'event-service-provider' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
||||
'listener-test' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
||||
'views/index' => ['LOWER_NAME'],
|
||||
'views/index-admin' => ['LOWER_NAME', 'STUDLY_NAME'],
|
||||
'views/frontend' => ['STUDLY_NAME'],
|
||||
'views/admin' => ['STUDLY_NAME'],
|
||||
'controller-admin' => ['MODULE_NAMESPACE', 'STUDLY_NAME', 'CLASS_NAMESPACE', 'LOWER_NAME'],
|
||||
'controller-api' => ['MODULE_NAMESPACE', 'STUDLY_NAME', 'CLASS_NAMESPACE', 'LOWER_NAME'],
|
||||
'scaffold/config' => ['STUDLY_NAME'],
|
||||
'composer' => [
|
||||
'provider' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
||||
'event-service-provider' => [
|
||||
'LOWER_NAME',
|
||||
'STUDLY_NAME',
|
||||
'MODULE_NAMESPACE',
|
||||
'CLASS_NAMESPACE',
|
||||
],
|
||||
'listener-test' => ['LOWER_NAME', 'STUDLY_NAME', 'MODULE_NAMESPACE'],
|
||||
'views/index' => ['LOWER_NAME'],
|
||||
'views/index-admin' => ['LOWER_NAME', 'STUDLY_NAME'],
|
||||
'views/frontend' => ['STUDLY_NAME'],
|
||||
'views/admin' => ['STUDLY_NAME'],
|
||||
'controller-index' => [
|
||||
'MODULE_NAMESPACE',
|
||||
'STUDLY_NAME',
|
||||
'CLASS_NAMESPACE',
|
||||
'LOWER_NAME',
|
||||
],
|
||||
'controller-admin' => [
|
||||
'MODULE_NAMESPACE',
|
||||
'STUDLY_NAME',
|
||||
'CLASS_NAMESPACE',
|
||||
'LOWER_NAME',
|
||||
],
|
||||
'controller-api' => [
|
||||
'MODULE_NAMESPACE',
|
||||
'STUDLY_NAME',
|
||||
'CLASS_NAMESPACE',
|
||||
'LOWER_NAME',
|
||||
],
|
||||
'config' => ['STUDLY_NAME'],
|
||||
'composer' => [
|
||||
'LOWER_NAME',
|
||||
'STUDLY_NAME',
|
||||
'VENDOR',
|
||||
'AUTHOR_NAME',
|
||||
'AUTHOR_EMAIL',
|
||||
'MODULE_NAMESPACE',
|
||||
'PROVIDER_NAMESPACE',
|
||||
],
|
||||
],
|
||||
'gitkeep' => false,
|
||||
@@ -52,15 +76,16 @@ return [
|
||||
'assets' => public_path('modules'),
|
||||
'migration' => base_path('database/migrations'),
|
||||
'generator' => [
|
||||
'config' => ['path' => 'Config', 'generate' => true],
|
||||
'command' => ['path' => 'Console', 'generate' => true],
|
||||
'migration' => ['path' => 'Database/migrations', 'generate' => true],
|
||||
'seeds' => ['path' => 'Database/seeds', 'generate' => true],
|
||||
'factory' => ['path' => 'Database/factories', 'generate' => true],
|
||||
'model' => ['path' => 'Models', 'generate' => true],
|
||||
'controller' => ['path' => 'Http/Controllers', 'generate' => true],
|
||||
'config' => ['path' => 'Config', 'generate' => true],
|
||||
'command' => ['path' => 'Console', 'generate' => true],
|
||||
'migration' => ['path' => 'Database/migrations', 'generate' => true],
|
||||
'seeds' => ['path' => 'Database/seeds', 'generate' => true],
|
||||
'factory' => ['path' => 'Database/factories', 'generate' => true],
|
||||
'model' => ['path' => 'Models', 'generate' => true],
|
||||
//'controller' => ['path' => 'Http/Controllers', 'generate' => true],
|
||||
'controller-admin' => ['path' => 'Http/Controllers/Admin', 'generate' => true],
|
||||
'controller-api' => ['path' => 'Http/Controllers/Api', 'generate' => true],
|
||||
'controller-index' => ['path' => 'Http/Controllers/Frontend', 'generate' => true],
|
||||
'filter' => ['path' => 'Http/Middleware', 'generate' => true],
|
||||
'request' => ['path' => 'Http/Requests', 'generate' => true],
|
||||
'routes' => ['path' => 'Http/Routes', 'generate' => true],
|
||||
@@ -124,7 +149,7 @@ return [
|
||||
'cache' => [
|
||||
'enabled' => true,
|
||||
'key' => 'phpvms-modules',
|
||||
'lifetime' => 10,
|
||||
'lifetime' => 0,
|
||||
],
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -143,7 +168,7 @@ return [
|
||||
'class' => FileActivator::class,
|
||||
'statuses-file' => config_path('modules_statuses.json'),
|
||||
'cache-key' => 'activator.installed',
|
||||
'cache-lifetime' => 604800,
|
||||
'cache-lifetime' => 0,
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user