This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
lnkohana/modules/unittest/bootstrap_all_modules.php

21 lines
406 B
PHP
Raw Normal View History

2013-04-22 04:09:50 +00:00
<?php
include_once('bootstrap.php');
// Enable all modules we can find
$modules_iterator = new DirectoryIterator(MODPATH);
$modules = array();
foreach ($modules_iterator as $module)
{
2016-05-01 10:50:24 +00:00
if ($module->isDir() AND ! $module->isDot())
2013-04-22 04:09:50 +00:00
{
$modules[$module->getFilename()] = MODPATH.$module->getFilename();
}
}
Kohana::modules(Kohana::modules() + $modules);
unset ($modules_iterator, $modules, $module);