mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 11:13:59 +02:00
[feature/extension-manager] Remove cron's dependency on the extension manager.
Instead a separate cron provider supplies the manager with tasks from the extension finder. PHPBB3-10323
This commit is contained in:
13
tests/cron/tasks/simple_not_runnable.php
Normal file
13
tests/cron/tasks/simple_not_runnable.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
class phpbb_cron_task_core_simple_not_runnable extends phpbb_cron_task_base
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
}
|
||||
|
||||
public function is_runnable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
8
tests/cron/tasks/simple_ready.php
Normal file
8
tests/cron/tasks/simple_ready.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
class phpbb_cron_task_core_simple_ready extends phpbb_cron_task_base
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
}
|
||||
}
|
13
tests/cron/tasks/simple_should_not_run.php
Normal file
13
tests/cron/tasks/simple_should_not_run.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
class phpbb_cron_task_core_simple_should_not_run extends phpbb_cron_task_base
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
}
|
||||
|
||||
public function should_run()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user