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

Adding new autowire key support to ConfigProvider #5

Closed
elie29 opened this issue Jun 1, 2018 · 0 comments
Closed

Adding new autowire key support to ConfigProvider #5

elie29 opened this issue Jun 1, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@elie29
Copy link
Owner

elie29 commented Jun 1, 2018

Instead of changing invokables behaviour, it is more interesintong to introduce a new key to ConfigProvider.

new Config([
        'dependencies' => [
            'services'   => [],
            'invokables' => [],
            'autowires'  => [], // A new key added to support PHP-DI autowire technique
            'factories'  => [],
            'aliases'    => [],
            'delegators' => [],
        ],
        // ... other configuration

        // Enable compilation
        Config::DI_CACHE_PATH => __DIR__, // Folder path

       // Enable cache
        Config::ENABLE_CACHE_DEFINITION => false, // boolean, true if APCu is activated
])
@elie29 elie29 self-assigned this Jun 1, 2018
@elie29 elie29 added the enhancement New feature or request label Jun 1, 2018
@elie29 elie29 closed this as completed Jun 1, 2018
elie29 added a commit that referenced this issue Jun 1, 2018
* Add type to composer.json

* feat(#5) Adding new autowire key support to ConfigProvider

* fix Correction readme
elie29 pushed a commit that referenced this issue Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant