tourze

Results 26 issues of tourze

https://github.com/PHP-DI/PHP-DI/blob/b8126d066ce144765300ee0ab040c1ed6c9ef588/src/Definition/Source/SourceCache.php#L46 For example, `apcu_store($this->getCacheKey($name), $definition, $this->cacheTTL);`, and add a params on \DI\ContainerBuilder::enableDefinitionCache, like `\DI\ContainerBuilder::enableDefinitionCache(string $cacheNamespace = '', int $cacheTTL = 0)`. By default, apcu will store the cache util restart...

taro-iconfont-cli在Taro3使用相对比较复杂,需要app.js主动引入并声明useComponent。 主要原因是Taro3.0变化了渲染的逻辑,非页面组件不支持声明*.config.js。 既然如此,就有一个最简单的兼容方案,就是直接使用taro原生组件。大概的组件代码如下: index.weapp.js ``` import {useState, useEffect} from 'react'; import {Block} from '@tarojs/components'; import './index.scss'; const initSvgSize = 36 / 750 * wx.getSystemInfoSync().windowWidth; const quot = '"'; function hex2rgb...

在一些情境中,我们希望使用css来控制icon样式的,目前生成的代码不支持css控制样式。

最近在一个大流量活动中使用了Workerman/GatewayWorker,发现在后台群推消息时,偶发会出现部分接收方无法接收消息的问题。 日志中表现为: ![image](https://user-images.githubusercontent.com/13899502/119324042-f45e8300-bcb1-11eb-9bf2-10570ea9c20f.png) 大概就是在 ``` } // 运行在其它环境中,通过注册中心得到gateway地址 else { $addresses = static::getAllGatewayAddressesFromRegister(); foreach ($addresses as $address) { $gateway_data['ext_data'] = isset($address_connection_array[$address]) ? json_encode(array('group'=> $group, 'exclude'=> $address_connection_array[$address])) : $default_ext_data_buffer; static::sendToGateway($address, $gateway_data);...

打印结果是: ![image](https://user-images.githubusercontent.com/13899502/152965144-8df30401-dbc5-43a8-aea0-75986f6657e4.png) 可以看到系统使用的单位是rpx。实际是rpx在Taro几个环境中不总是兼容的,例如Taro-H5、Taro-RN就没有这种单位。 看了下源码,貌似有一个没公开的配置叫 transformUnit,taro的preset可能使用transformUnit来转换会比较好: ``` import { Theme } from '@fower/core' import { Preset } from '@fower/core' import Taro from '@tarojs/taro'; import { plugins } from './plugins' import {...

Seems that in vendor/steevanb/doctrine-read-only-hydrator/EventSubscriber/ReadOnlySubscriber.php, `Doctrine\Common\Persistence\Event\LifecycleEventArgs` not found. I can find `\Doctrine\Persistence\Event\LifecycleEventArgs` in the vendor directory. My doctrine/orm veresion is 2.13.1

Symfony 6 is released for years, and it is time to support it.

I notice that the master branch has modified the composer.json, but that is not a new release on packagist.