I have to run a script every hour. So what I did in server is call myfile.php file every hour which runs my static function runT().
Now my problem is after this runT() function is executed i have to run a method  test under a controller MyController.
myfile.php
include "Helper.php";
Helper::runT();
Helper.php
public static function runT() {
        ini_set('max_execution_time', 300);
        $conn = self::getDbConnection();
MyController.php
class MyController extends Controller
{
   public function test() {
 
     
     
    