vbresults
Guest
offline
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
Continue reading...
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:
Code:
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
Continue reading...