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

feat: DI container services availability during install #3927

Conversation

mccar
Copy link
Contributor

@mccar mccar commented Nov 16, 2023

Ticket - https://oat-sa.atlassian.net/browse/REL-1326

Goal

DI container services availability during install

Changelog

  • feat: DI container services availability during install
  • feat: added the ability to configure the run DI container registered service->method as part extension install process.

How to test

Configure extension manifest install section with parameter 'containerRebuild' => true,
Debug one of install->php classes to check the availability of some DI services registered in the provider from containerServiceProviders
Run setup to debug
docker exec -it studio-phpfpm php tao/scripts/taoSetup.php /var/docker-stack-cli/setup.json -vvv

To check the ability to run DI container registered service->method configured in the manifest.php file you should add some service to section [install][php] in this format:

            [
                'service' => SomeServiceClass::class,
                'method' => 'methodName',
                'arguments' => ['argument1', ...]
            ]       

containerRebuild must be set to true for this extension

Depend on oat-sa/generis#1086

Copy link

Version

Target Version 53.13.0
Last version 53.12.1

There are 0 BREAKING CHANGE, 6 features, 0 fix

@vbyndych vbyndych removed their request for review March 13, 2024 08:48
@mccar mccar closed this Mar 13, 2024
@mccar mccar deleted the feat/REL-1326/di-container-services-availability-during-install branch March 13, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant