Size: a a a

2020 May 25

AM

Alexander Makarov in Yii Framework 3
then keys are necessary
источник

AM

Alexander Makarov in Yii Framework 3
we don't want to lose the ability
источник

DS

Dmitriy S in Yii Framework 3
In addition this order (app first) is needed for events too
источник

DS

Dmitriy S in Yii Framework 3
It is not so critical but it will be better when the listeners defined in the main app will be executed before packages listeners
источник

T

TradersVE in Yii Framework 3
Dmitriy S
It is not so critical but it will be better when the listeners defined in the main app will be executed before packages listeners
👍
источник

RM

Rustam Mamadaminov in Yii Framework 3
I think providers should be in their own package and only should be in modules.
источник

T

TradersVE in Yii Framework 3
Rustam Mamadaminov
I think providers should be in their own package and only should be in modules.
I think the same, but at least the configuration for now will be simpler, here we go day by day.
источник

DS

Dmitriy S in Yii Framework 3
Rustam Mamadaminov
I think providers should be in their own package and only should be in modules.
For what reason providers should be in modules only?
источник

AM

Alexander Makarov in Yii Framework 3
I think not only modules but any packages.
источник

T

TradersVE in Yii Framework 3
Dmitriy S
For what reason providers should be in modules only?
just the settings.
источник

T

TradersVE in Yii Framework 3
@yiiliveext if we add the providers to all the packages, the composer-plugin in which order will they be placed?
источник

T

TradersVE in Yii Framework 3
so I think that if we should generate an id, to tell the composer-plugin the order in which it should be built.
источник

T

TradersVE in Yii Framework 3
the other solution would be to register all the providers in all the packages without registering them in provider.php and then if the developer needs it, add the configuration in the correct order, I lean towards this option.
источник

T

TradersVE in Yii Framework 3
We can put a default configuration in order, and the developed one activates or deactivates it.
источник

DS

Dmitriy S in Yii Framework 3
TradersVE
the other solution would be to register all the providers in all the packages without registering them in provider.php and then if the developer needs it, add the configuration in the correct order, I lean towards this option.
You can rearrange providers in the main app providers.php if you want another order
источник

T

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

T

TradersVE in Yii Framework 3
well I think with this the configuration will now be clearer for everyone.
источник

T

TradersVE in Yii Framework 3
@yiiliveext It is more thinking the configuration of Providers is the configuration of the modules we would only need to pass the urls more cleanly.
источник

T

TradersVE in Yii Framework 3
for now:

class AppRouterFactory
{
   public function __invoke(ContainerInterface $container)
   {
       $routes = require Builder::path('routes');

       $collector = $container->get(RouteCollectorInterface::class);
       $collector->addGroup(
           Group::create(null, $routes)
               ->addMiddleware(FormatDataResponse::class)
       );

       return new UrlMatcher(new RouteCollection($collector));
   }
}
источник

T

TradersVE in Yii Framework 3
https://bulma.io/ Framework css with SASS its awesome.
источник