Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] create a global modules.json into Storage #240

Open
zorx opened this issue Jan 26, 2016 · 0 comments
Open

[Enhancement] create a global modules.json into Storage #240

zorx opened this issue Jan 26, 2016 · 0 comments

Comments

@zorx
Copy link

zorx commented Jan 26, 2016

I think that it would be a great idea to create a new modules.json file into storage_path() and store active:true/false (and remove this attribute from the current module.json of course) for each module inside, for example :

in config.php inside paths

'paths' => [
...
'manifest' => storage_path() . '/modules.json',
...
]

content of modules.json

{
    "Blog": true,
    "Acme": false
}

this enhancement will allow us to better protect our modules and not change their permissions, to use methods like $module->enable() & $module->disable()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant