Size: a a a

2020 June 16

T

TradersVE in Yii Framework 3
источник

AM

Alexander Makarov in Yii Framework 3
источник

T

TradersVE in Yii Framework 3
An alternative may be to create a repository and merge the configurations, but the yi packages should use the yii container which already depends on other yii packages.
источник

T

TradersVE in Yii Framework 3
yii-web would not work with another container
источник

AM

Alexander Makarov in Yii Framework 3
TradersVE
yii-web would not work with another container
That's the main question if it should.
источник

AM

Alexander Makarov in Yii Framework 3
источник

T

TradersVE in Yii Framework 3
How would you use yii-web outside the framework?
источник

AM

Alexander Makarov in Yii Framework 3
It is not yii-web outside of the framework. It is different PSR container with Yii.
источник

T

TradersVE in Yii Framework 3
Alexander Makarov
It is not yii-web outside of the framework. It is different PSR container with Yii.
If I understand that but in yii packages using another container is not going to guarantee that the package works completely since it depends indirectly on the implementation of our container
источник

AM

Alexander Makarov in Yii Framework 3
Even if only get() and type-hints are used?
источник

AM

Alexander Makarov in Yii Framework 3
We're not doing set() anywhere except providers
источник

T

TradersVE in Yii Framework 3
Would it be possible to separate Service Provider, and make it use ContainerInterface, and be compatible with container league?
источник

T

TradersVE in Yii Framework 3
Container League also support Service Provider
источник

AM

Alexander Makarov in Yii Framework 3
unlikely
источник

AM

Alexander Makarov in Yii Framework 3
ContainerInterface isn't enough for provider
источник

AM

Alexander Makarov in Yii Framework 3
because ContainerInterface doesn't have any setter methods
источник

T

TradersVE in Yii Framework 3
But Service Providers two methods boot and register
источник

В

Виктор in Yii Framework 3
I think optional container is a good way to increase the frameworks audience. Some people are really like containers written by the League and Symfony. It will be difficult for them to understand how to use functionality of factory or subcontainers in our implementation. And they don't need to if they can use what they used to use before.
So I'm for container-agnostic libraries.
источник

NO

Nex Otaku in Yii Framework 3
It it does more than what is defined in PSR, it is not interchangeable with PSR-compatible containers )

So the question is, should framework components be compatible with any PSR container?
источник

NO

Nex Otaku in Yii Framework 3
Если предполагается, что пользователь сможет заменить контейнер на любой PSR-совместимый, то в компонентах нельзя использовать фишки, которые есть только в Yii DI контейнере.
источник