当然 ,之前yii2有一个queue,这个queu简单到只有一个run/job,其他都没有。这回终于来一个完善的了。说实话,有时候用laravel,就是因为想用他的queue。现在终于不用纠结了!
再细看一下他的composer.json。。。还是逃不脱SF的大坑!不过总算是有队列了,管它呢。这年头,所有框架最后都会被SF大一统么?
先到这里看一下教程:https://github.com/yiisoft/yii2-queue/blob/master/docs/guide/README.md
然后再回到:https://github.com/yiisoft/yii2-queue ,下载代码吧,真正使用也简单,php composer.phar require --prefer-dist yiisoft/yii2-queue,就完事了!
不过这个玩意,估计在windows下面是无效的,常用方法有:
PHP代码
-
- $id = Yii::$app->queue->push(new SomeJob());
-
-
- Yii::$app->queue->isWaiting($id);
-
-
- Yii::$app->queue->isReserved($id);
-
-
- Yii::$app->queue->isDone($id);
估计以后的项目,默认就直接引用:yiisoft/yii2 , yiisoft/yii2-queue了!
看这里: https://blog.jetbrains.com/phpstorm/2017/06/php-annotated-monthly-june-2017/
其实在blog.jetbrains.com/phpstorm上,有很多PHP的使用方法和IDE的奇技淫巧。比如教你怎么远程debug之类的
我先贴点原文中的链接。如果要看更多,可以点击上面的链接
PHP 7.2 will have some great new features, keep your eye on this blog for a roundup once I’ve had a chance to look at the alpha in the coming weeks.
Other good posts on PHP and general development this month:
Frameworks and Libraries
We’ve got the usual slew of Laravel and Zend Framework posts, along with some interesting posts for WordPress, Yii and some more useful articles on Composer and Packagist.
Yii
Laravel
Zend Framework
Symfony
Other
Community, Career, and Events
There was an interesting interview with Taylor Otwell, creator and lead developer of Laravel tells us why Taylor Otwell Wants You To Build Your PHP Apps On Laravel. I also enjoyed an interview with Anna Filina On PHP Trainings And Future Of PHP Frameworks.
An interesting question is posed in Can 9-to-5 Developers Be Good Developers? While I disagree vehemently with some of the points made in the article, it makes for an interesting discussion.
This month I’ll be at PHP South Coast in Portsmouth this week, and DPC in Amsterdam at the end of the month. Make sure you come and say “Hi!” if you see me at any events.
好东西实在太多。。。
在说问题前。我先感慨一下。不知道是不是真的有问题?因为我发现我mysql-proxy的配置文件都变了。汗!
看了一下LOG配置,原来。。昨天我服务器到期了,今天凌晨自动更新然后。不知道他怎么搞的。把我的配置改掉了。然后更恶心的是。。默认mysql-proxy的配置我明明有,他怎么启动了我一个没配置过的地址?
而且mysql-proxy默认配置文件启用的时候。4040端口居然无效?只能再通过配置文件加上4040端口。问题才解决
苦啊
本文其实发生在一周前。。。
之前我安装了mac 10.13的beta版。除了几个软件经常崩之外。还算OK。比如:PAW不能用了,风暴英雄不能玩了,等等。。。所幸还能忍,感觉比以前稳定
后来。。。。mac 10.13出个beta2,也就顺理成章的更新了一下。然后。。。就没有然后了。
最后花了半天时间用备份把电脑恢复了
看来我还是RP不够好(再次证明备份还是有用的)
自从手贱升到high serria之后。感觉磁盘空间多了不少。于是就想将当时把磁盘做的另一个分区也改成apfs。然而,直接使用磁盘工具是不行的。于是启动的时候按住CMD+R进入恢复模式。
再打开磁盘工具,居然没有转换成APFS的功能。于是进入命令行。使用diskutil工具进行处理
一阵提心吊胆的操作后。系统成功转换成了APFS。重启无误。
于是记录一下这次没有备份时的,提心吊胆的操作!