phpldapadmin/includes/kohana/modules/unittest/bootstrap_all_modules.php
2013-03-19 15:55:33 +11:00

21 lines
383 B
PHP

<?php
include_once('bootstrap.php');
// Enable all modules we can find
$modules_iterator = new DirectoryIterator(MODPATH);
$modules = array();
foreach ($modules_iterator as $module)
{
if ($module->isDir())
{
$modules[$module->getFilename()] = MODPATH.$module->getFilename();
}
}
Kohana::modules(Kohana::modules() + $modules);
unset ($modules_iterator, $modules, $module);