In ZF1, we were used to have different sections in
application.ini, like Production, Testing, and Development, and often a few personal developer sections, like
'dev_bart'. By setting an environment variable, you could easily distinguish between environments and, for example, load different database credentials. In ZF2, this is solved in a different manner.
Let’s take database configuration: Imagine you built a module that uses a MySQL database. You might have configured the database adapter with the key
db_adapter_book inside your module configuration.
Note: If you want to make your module reusable, you should consider not configuring your database adapter within your module, but instead ...