mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
c1d6e82248
dquote> API CHANGE: Deprecate ClassInfo::ready() in favour of Security::database_is_ready() dquote> API CHANGE: Create DataObject::has_own_table() to determine whether a DataObject has a table without looking at it. dquote> API CHANGE: Exclude /tests/ directories from the manifest entirely except when tests are being run. dquote> API CHANGE: Added ?usetestmanifest=1 flag to access the test manifest outside of test execution. dquote> API CHANGE: Simplified Core.php manifest include to just call ManifestBuilder::include_manifest() - manifest takes care of its own cache file git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65385 467b73ca-7a2a-4603-9d3b-597d59a354a9
25 lines
544 B
PHP
Executable File
25 lines
544 B
PHP
Executable File
<?php
|
|
/**
|
|
* Base class invoked from CLI rather than the webserver (Cron jobs, handling email bounces)
|
|
* @package sapphire
|
|
* @subpackage cron
|
|
*/
|
|
abstract class CliController extends Controller {
|
|
function init() {
|
|
$this->disableBasicAuth();
|
|
parent::init();
|
|
}
|
|
|
|
function index() {
|
|
foreach( ClassInfo::subclassesFor( $this->class ) as $subclass ) {
|
|
echo $subclass;
|
|
|
|
$task = new $subclass();
|
|
$task->process();
|
|
}
|
|
}
|
|
|
|
function process() {}
|
|
}
|
|
?>
|