-
Notifications
You must be signed in to change notification settings - Fork 51
Respect existing config.php and local.php #166
Comments
This is just my opinion, not that of Apigility. You should never use closures in your config files and you should never use constants outside very specific-use classes. The problems you listed are not because Apigility uses the expected global.php file and it doesn't modify the local.php file. These problems are because you're using config files wrong. For anything which requires a fixture put it in the service manager config of the module. For anything that requires a constant drag the developer out by his hair. |
local.php was modified to include zf-mvc-auth.
or:
|
$serviceManager->get('doctrine.entitymanager.orm_default'); |
For error reporting that should be a function in local.php set_error_reporting and it should use the PHP E_ALL constant. My previous comment I hope shows my ignorance of PDO. I think you have a point about Apigility changing local.php. |
This repository has been closed and moved to laminas-api-tools/api-tools; a new issue has been opened at laminas-api-tools/api-tools#25. |
Apigility should write to its own config files rather than rewriting existing files.
We've had to move the application's config out of global.php and into app.global.php because Apigility kept messing it up each time a change was made in the admin ui.
Eg. closures would break, and constants were being replaced with their values.
The text was updated successfully, but these errors were encountered: