امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I have some opinions on the syntax of the latest RC. If I understand correctly, it went from this:
PHP:
To this:
PHP:
To this:
PHP:
To this:
PHP:
For me, this is the best one because it's explicit, but at the same time, it's...
Read more
PHP:
$userRepo = \XF::app()->repository('XF:User');To this:
PHP:
$userRepo = \XF::app()->repository(\XF\Repository\User::class);To this:
PHP:
$userRepo = \XF::repository(\XF\Repository\User::class);To this:
PHP:
کد:
use XF\Repository\UserRepository;
$userRepo = \XF::repository(UserRepository::class);
For me, this is the best one because it's explicit, but at the same time, it's...
Read more
