ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 26,838
- Points
- 823
Reputation:
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...