[RSS Feed/News] Add-on Composer support seems inefficient

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
If an Add-on does have a composer autoloader directory defined, XenForo will check if that directory and installed.json within that path does exist in XF\ComposerAutoload::__csonstruct()

PHP:

Code:
if (!file_exists($pathPrefix) || !file_exists($pathPrefix . \XF::$DS . 'installed.json'))
{
    throw new \InvalidArgumentException(
        'Composer Autoload path (' . htmlspecialchars($this->getPathForError($pathPrefix)) . ') does not appear to be a valid composer...

Read more

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