• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

re: XenForo & Add-ons 2.3.0 Release Candidate 3 Released (Unsupported)

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
I have some opinions on the syntax of the latest RC. If I understand correctly, it went from this:
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
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا