Changeset View
Changeset View
Standalone View
Standalone View
src/init/lib/PhutilBootloader.php
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | try { | ||||
// else loaded so proceed forward: worst case is a fatal when we | // else loaded so proceed forward: worst case is a fatal when we | ||||
// hit a function call to a function which no longer exists, which is | // hit a function call to a function which no longer exists, which is | ||||
// no worse than fataling here. | // no worse than fataling here. | ||||
} | } | ||||
if (empty($_SERVER['PHUTIL_DISABLE_RUNTIME_EXTENSIONS'])) { | if (empty($_SERVER['PHUTIL_DISABLE_RUNTIME_EXTENSIONS'])) { | ||||
$extdir = $path.DIRECTORY_SEPARATOR.'extensions'; | $extdir = $path.DIRECTORY_SEPARATOR.'extensions'; | ||||
if (Filesystem::pathExists($extdir)) { | if (Filesystem::pathExists($extdir)) { | ||||
$extensions = id(new FileFinder($extdir)) | $extensions = (new FileFinder($extdir)) | ||||
->withSuffix('php') | ->withSuffix('php') | ||||
->withType('f') | ->withType('f') | ||||
->withFollowSymlinks(true) | ->withFollowSymlinks(true) | ||||
->setForceMode('php') | ->setForceMode('php') | ||||
->find(); | ->find(); | ||||
foreach ($extensions as $extension) { | foreach ($extensions as $extension) { | ||||
$this->loadExtension( | $this->loadExtension( | ||||
▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0