if (!
$dir->
isDir() ||
$dir->
isDot()) { continue;
} $file =
$dir->
getPathname() . DIRECTORY_SEPARATOR . 'Bootstrap.php';
if (!
file_exists($file)) { continue;
} $name =
$dir->
getFilename();
if ($this->
validateIonCube($file)) { throw new Exception(sprintf('Plugin "%s" is encrypted but the ionCube Loader extension is not installed',
$name));
} $plugin =
$collection->
get($name);
if ($plugin === null
) { $plugin =
$collection->
initPlugin($name,
new Enlight_Config([ 'source' =>
$source,
'path' =>
$dir->
getPathname() . DIRECTORY_SEPARATOR,
]));
}