Skip to content

Allow a config array for the container, instead of a path #83

@finn-matti

Description

@finn-matti

Feature Request

Q A
New Feature yes
RFC no
BC Break no

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:

$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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions