Size: a a a

2020 May 24

T

TradersVE in Yii Framework 3
@yiiliveext work fine routes in routes.php 👍
источник

T

TradersVE in Yii Framework 3
@yiiliveext Simplify the configuration by creating CacheProvider, LoogerProvider, WebViewProvider, MailerProvider, now config common and web are short.
источник

DS

Dmitriy S in Yii Framework 3
TradersVE
@yiiliveext Simplify the configuration by creating CacheProvider, LoogerProvider, WebViewProvider, MailerProvider, now config common and web are short.
Ok👍
источник

T

TradersVE in Yii Framework 3
Dmitriy S
Ok👍
By default we should create a provider in each package it will only be used if the user registers it and calls it would be a quick configuration.
источник

RM

Rustam Mamadaminov in Yii Framework 3
TradersVE
By default we should create a provider in each package it will only be used if the user registers it and calls it would be a quick configuration.
+
источник

DS

Dmitriy S in Yii Framework 3
TradersVE
By default we should create a provider in each package it will only be used if the user registers it and calls it would be a quick configuration.
It doesn't work in this way
источник

T

TradersVE in Yii Framework 3
because we cannot have a provider without registering it, and the user registers it in providers, it will work.
источник

T

TradersVE in Yii Framework 3
Dmitriy S
It doesn't work in this way
There are only two things that could go against it, one to pass parameters, and the second must be registered in order, but at least I prefer it, before having a very long configuration.
источник

DS

Dmitriy S in Yii Framework 3
TradersVE
There are only two things that could go against it, one to pass parameters, and the second must be registered in order, but at least I prefer it, before having a very long configuration.
If you want to disable|enable a package without removing you have to do it with a parameter like ['your-package.enabled' => true]. See the debugger package.
источник
2020 May 25

T

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

DS

Dmitriy S in Yii Framework 3
Packages providers must be registered after main app providers.
источник

T

TradersVE in Yii Framework 3
Dmitriy S
Packages providers must be registered after main app providers.
Could you tell me which ones, because I tested them a lot and it works very well, in fact your work with service providers is excellent.
источник

DS

Dmitriy S in Yii Framework 3
TradersVE
Could you tell me which ones, because I tested them a lot and it works very well, in fact your work with service providers is excellent.
Now everything is ok, but you can try to use some service in the register method of the package provider that is registering by the main app service provider.
источник

T

TradersVE in Yii Framework 3
all default controller use WebView
источник

DS

Dmitriy S in Yii Framework 3
Try this provider in any package
final class MyProvider extends ServiceProvider
{
   public function register(Container $container): void
   {
       $eventDispatcher = $container->get(EventDispatcherInterface);
    }
}
источник

DS

Dmitriy S in Yii Framework 3
When this provider is registering, EventDispatcherInterface that register by the main app service provider doesn't exist yet.
источник

T

TradersVE in Yii Framework 3
providers are all in order.
источник

T

TradersVE in Yii Framework 3
That if you have to put the providers in the order of dependency, that if I know.
источник

DS

Dmitriy S in Yii Framework 3
TradersVE
providers are all in order.
Package providers first, then main app providers
источник

DS

Dmitriy S in Yii Framework 3
See the composer plugin providers build
источник