Size: a a a

2020 August 05

RM

Rustam Mamadaminov in Yii Framework 3
TradersVE
Example Laravel for multiple domains, yii3 no support:
Yeah, today I figured out that, this is not supported in yii3..
источник

RM

Rustam Mamadaminov in Yii Framework 3
Дмитрий
почему не лучше? твоя реализация из pr сейчас создает отдельный файл для индекса
да, это отдельный общий (не для каждого запроса) индексный файл.
источник

RM

Rustam Mamadaminov in Yii Framework 3
TradersVE
If support is added in the routes for multiple domains, if the advanced application is not needed.
+++
источник

RM

Rustam Mamadaminov in Yii Framework 3
Alexander Borisov
я так понимаю FastRoute не умеет матчить host?
да, не умеет
источник

RM

Rustam Mamadaminov in Yii Framework 3
TradersVE
Example config work php 8.0:

<?php

declare(strict_types=1);

return [
   \Psr\Log\LoggerInterface::class => \Yiisoft\Log\Logger::class,

   \Yiisoft\Cache\CacheInterface::class => static function (\Psr\Container\ContainerInterface $container) {
       return new \Yiisoft\Cache\Cache(new \Yiisoft\Cache\ArrayCache());
   },

   \Yiisoft\Db\Connection\Connection::class => static function (\Psr\Container\ContainerInterface $container) {
       $aliases = $container->get(\Yiisoft\Aliases\Aliases::class);
       $cache = $container->get(\Yiisoft\Cache\CacheInterface::class);
       $logger = $container->get(\Psr\Log\LoggerInterface::class);
       $profiler = $container->get(\Yiisoft\Profiler\Profiler::class);

       $db = new \Yiisoft\Db\Connection\Connection(
           $cache,
           $logger,
           $profiler,
           'sqlite:' . $aliases->get('@yiisoft/yii/db/migration/runtime') . '/yiitest.sq3'
       );

       return $db;
   },
];

if we don't use the namespace it doesn't work.
FQN not working in php 8?
источник

DS

Dmitriy S in Yii Framework 3
Alexander Borisov
я так понимаю FastRoute не умеет матчить host?
Не умеет, но этот функционал легко добавить в наш роутер
источник

T

TradersVE in Yii Framework 3
container-di with static function add use(class), o I prefer to write it in full.

Output composer-plug-in:

'Yiisoft\\Assets\\AssetManager' => static function (\ContainerInterface $container) use ($params) {
       $assetManager = new \AssetManager($container->get(\LoggerInterface::class));

       $assetManager->setConverter($container->get(\AssetConverterInterface::class));
       $assetManager->setPublisher($container->get(\AssetPublisherInterface::class));
}
источник

T

TradersVE in Yii Framework 3
So I think it's better to write everything complete.
источник

AM

Alexander Makarov in Yii Framework 3
TradersVE
I've always thought that we should leave scrutinizer, add codecov, and just use github / actions.
That's a good idea except that we'll lose "quality score" metric that I personally find useful.
источник

AM

Alexander Makarov in Yii Framework 3
Alexander Borisov
я так понимаю FastRoute не умеет матчить host?
Наш умеет.
источник

T

TradersVE in Yii Framework 3
Alexander Makarov
Наш умеет.
👍👍👍😁
источник

AM

Alexander Makarov in Yii Framework 3
Дмитрий
would be nice to have only one dependency that will trigger other.

1. we have our own application yiisoft-github-action-pack
2. yiisoft-github-action-pack use phpunit, phan, infection, code sniffer, code style fixer, and other
3. each package should use yiisoft-github-action-pack
4. all configs contains in yiisoft-github-action-pack
5. in rarely cases we can adjust configs in concrete packages


it's a dream or real to have this app?
Doable. In fact, we can have meta-repository with common config and delete individual files. That's supported by github.
источник

RM

Rustam Mamadaminov in Yii Framework 3
Alexander Makarov
Наш умеет.
huh?
источник

T

TradersVE in Yii Framework 3
Alexander Makarov
Doable. In fact, we can have meta-repository with common config and delete individual files. That's supported by github.
Yes but it would not be a good idea to have a package that depends on everything.
источник

AM

Alexander Makarov in Yii Framework 3
TradersVE
Example config work php 8.0:

<?php

declare(strict_types=1);

return [
   \Psr\Log\LoggerInterface::class => \Yiisoft\Log\Logger::class,

   \Yiisoft\Cache\CacheInterface::class => static function (\Psr\Container\ContainerInterface $container) {
       return new \Yiisoft\Cache\Cache(new \Yiisoft\Cache\ArrayCache());
   },

   \Yiisoft\Db\Connection\Connection::class => static function (\Psr\Container\ContainerInterface $container) {
       $aliases = $container->get(\Yiisoft\Aliases\Aliases::class);
       $cache = $container->get(\Yiisoft\Cache\CacheInterface::class);
       $logger = $container->get(\Psr\Log\LoggerInterface::class);
       $profiler = $container->get(\Yiisoft\Profiler\Profiler::class);

       $db = new \Yiisoft\Db\Connection\Connection(
           $cache,
           $logger,
           $profiler,
           'sqlite:' . $aliases->get('@yiisoft/yii/db/migration/runtime') . '/yiitest.sq3'
       );

       return $db;
   },
];

if we don't use the namespace it doesn't work.
Looks like an issue of one of our dependencies.
источник

Д

Дмитрий in Yii Framework 3
Alexander Makarov
Doable. In fact, we can have meta-repository with common config and delete individual files. That's supported by github.
do you have examples with similar behavior?
источник

T

TradersVE in Yii Framework 3
Alexander Makarov
Looks like an issue of one of our dependencies.
I don't think so, by the way yiisoft/factory has a circular dependency on composer.json.
источник

AM

Alexander Makarov in Yii Framework 3
Перепроверил. Думал что сделали, но нет.
источник

AM

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

AM

Alexander Makarov in Yii Framework 3
TradersVE
Yes but it would not be a good idea to have a package that depends on everything.
It's not a package.
источник