Yifans_Z

Results 7 issues of Yifans_Z

| Q | A | ------------------- | ----- | Bug report? | yes | Feature request? | no | Swoft version | 2.0.11 | Swoole version | 4.8.6 | PHP...

AsyncStorage 因为是异步的,怎么封装呢?比如: ``` getxxx() { AsyncStorage.getItem(AsyncStorageKey.xxx, (error, result) => { if (!error) { if (result !== null && result !== '') { return JSON.parse(result); } } else { return false;...

composer 在加载类 和 全局方法 时有两种方式 ``` $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); ``` $useStaticLoader 为 true 则使用 静态方法,是因为静态方法有什么优势吗?

```php spl_autoload_register(array('ComposerAutoloaderInit76e88f0b305cd64c7c84b90b278c31db', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); spl_autoload_unregister(array('ComposerAutoloaderInit76e88f0b305cd64c7c84b90b278c31db', 'loadClassLoader')); ``` 为什么这样可以解决:怕有的用户也定义了个 `\Composer\Autoload\ClassLoader` 命名空间,导致自动加载错误文件。

### What does this PR do? 修复 当批量更新时 字段里有 单引号 时bug. #### Does this fix any issues or need any specific reviewers? Fixes: swoft-cloud/swoft# Reviewers: @ ### Motivation ### Additional...

```php 'scanOptions' => [ 'processor' => [], ], ``` ```php public function actions() { return [ //The document preview addesss:http://api.yourhost.com/site/doc 'doc' => [ 'class' => 'light\swagger\SwaggerAction', 'restUrl' => \yii\helpers\Url::to(['/site/api'], true),...