Size: a a a

2020 May 25

DS

Dmitriy S in Yii Framework 3
Alexander Makarov
if we don't care about keys... maybe we don't need keys?
I don't remember for what purpose I added the key, but iy was some case
источник

DS

Dmitriy S in Yii Framework 3
Oh, I remembered this is an opportunity to replace the package provider with an alternative. For example ProxyServiceProvider with DubuggerServiceProvider for the debugger package
источник

DS

Dmitriy S in Yii Framework 3
Both of this packages have the same role but the last doesn't have ContainerProxy
источник

DS

Dmitriy S in Yii Framework 3
So the best way is
источник

AM

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

AM

Alexander Makarov in Yii Framework 3
maybe we can allow both using and not using keys?
источник

AM

Alexander Makarov in Yii Framework 3
i.e. we normalize the array when reading
источник

AM

Alexander Makarov in Yii Framework 3
if there's no key it's assumed that the name is the same as value
источник

AM

Alexander Makarov in Yii Framework 3
we will both have simpler syntax for majority of cases and ability to redefine providers
источник

DS

Dmitriy S in Yii Framework 3
Alexander Makarov
maybe we can allow both using and not using keys?
I think that's what we have now, you can don't use the string keys
источник

DS

Dmitriy S in Yii Framework 3
Everything works with this config build
источник

DS

Dmitriy S in Yii Framework 3
So it is not necessary to use string keys
источник

DS

Dmitriy S in Yii Framework 3
But you can
источник

AM

Alexander Makarov in Yii Framework 3
Wilmer how about not having keys?
источник

AM

Alexander Makarov in Yii Framework 3
Dmitriy S
So it is not necessary to use string keys
How would I replace provider then?
источник

AM

Alexander Makarov in Yii Framework 3
which key should I use?
источник

DS

Dmitriy S in Yii Framework 3
But if you don't use string keys the provider can't be overrided in the main app
источник

AM

Alexander Makarov in Yii Framework 3
does the override happen in compose config plugin at build stage?
источник

DS

Dmitriy S in Yii Framework 3
Alexander Makarov
does the override happen in compose config plugin at build stage?
yes of cause
источник

AM

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