symfony-bridge | using command buses and event buses | Web Framework library
kandi X-RAY | symfony-bridge Summary
kandi X-RAY | symfony-bridge Summary
By Matthias Noback, Cliff Odijk, Ruud Kamphuis.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Collects all service ids .
- Check required bundles .
symfony-bridge Key Features
symfony-bridge Examples and Code Snippets
Community Discussions
Trending Discussions on symfony-bridge
QUESTION
I have some problems by getting the PHP-DI 6 & Symfony 4 combination working. So I'd like to get a deeper understanding, how this works / should work and check, whether I actually configured it correctly.
Symfony uses by default its own DI container, symfony/dependency-injection
. In the App\Kernel
there is a "hook" method configureContainer(...)
. In this method the DIC can be configured. Another place for the DIC configuration is the services.yaml
.
Now I install the php-di/php-di
and the php-di/symfony-bridge
and set it up in the App\Kernel#buildPHPDIContainer(...)
as in the PHP-DI docu explained:
ANSWER
Answered 2020-Jan-16 at 10:46What happens / should happen after it?
What is the idea / approach of the PHP-DI Symfony Bridge -- to replace the framework's DIC or to integrate itself into it?
The SymfonyContainerBridge
replaces the Symfony container. This "bridge" is a proxy to both PHP-DI and Symfony DI: if an entry is found in Symfony's DI container, it returns it, else it looks inside PHP-DI.
Does the Symfony DIC become inactive?
No.
If not, does it mean, that the application uses two DICs in the same time?
Yes.
Make it sense to disable the Symfony's DIC?
Not really because a lot of things in Symfony only work thanks to Symfony's DI container's config.
Is there something else to do?
If you've followed the steps described in the documentation there shouldn't be something else to do.
As for your other question I've posted an answer yesterday.
QUESTION
Let's say I have a Symfony v4.4 (Flex) project with the following block in the composer.json
:
ANSWER
Answered 2019-Dec-04 at 15:32As far as I know Flex uses the list of components from the symfony/symfony metapackage, according to the message in your output:
Restricting packages listed in "symfony/symfony" to "4.4.*"
You can find the list of packages in the corresponding composer.json or on packagist:
- https://packagist.org/packages/symfony/symfony
- https://github.com/symfony/symfony/blob/master/composer.json#L38-L100
This is the current list for 4.4.1:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install symfony-bridge
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page