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
It would be great if the ContainerResolver could accept an array as its configuration instead of a path. This would make it function similarly to the mvc skeleton's index.php:
$appConfig = require__DIR__ . '/../config/application.config.php';
if (file_exists(__DIR__ . '/../config/development.config.php')) {
$appConfig = ArrayUtils::merge($appConfig, require__DIR__ . '/../config/development.config.php');
}
// Run the application!Application::init($appConfig)->run();
This is great because it allows you to merge another configuration file into the config.
With laminas-cli this is currently not possible, it seems. Or maybe I just don't know how?
The text was updated successfully, but these errors were encountered:
I guess that would work. However I still think being able to stick an array in the ContainerResolver would be nicer for folks like me, who have to use laminas-cli through an index.php instead of the provided binary because of requirements I can't change.
The goal of #78 and your feature request is the same, right?
Yes. The end goal is the possibility of optional includes. But: Preferably as an array, that can just be handed over to the ContainerResolver. Since I didn't see anything as regards to the last part of my request (except that the current solution is a workaround, which lets me infer stuff, but I am not yet certain which is why I'm weaseling around here… apologies!): if the last part of my request would be added to that request explicitly, this one could be closed, as far as I am concerned. 👍
Feature Request
Summary
It would be great if the ContainerResolver could accept an array as its configuration instead of a path. This would make it function similarly to the mvc skeleton's index.php:
This is great because it allows you to merge another configuration file into the config.
With laminas-cli this is currently not possible, it seems. Or maybe I just don't know how?
The text was updated successfully, but these errors were encountered: