[RSS Feed/News] Is the public type in router necessary?

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I'm curious if the public type in router is necessary. The type was missing in code I wrote a few years ago but the code still appeared to work. Hovering over the router() with PhpStorm shows null | string.

I went ahead and added the public type but am really curious what it does since 'admin' is the other type.

PHP:

XF::app()->router('public')->buildLink( 'canonical:threads', $thread )

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom