]> git.mxchange.org Git - friendica.git/blobdiff - bin/worker.php
Fix redirect logging
[friendica.git] / bin / worker.php
index 1b70a2095544a2d26b15160b230ddb9f733c4f21..5698cf16ddfaca79eb69b0e1aa04d3efa515435c 100755 (executable)
  * Starts the background processing
  */
 
+if (php_sapi_name() !== 'cli') {
+       header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
+       exit();
+}
+
 use Dice\Dice;
 use Friendica\App;
+use Friendica\Core\Process;
 use Friendica\Core\Update;
 use Friendica\Core\Worker;
 use Friendica\DI;
@@ -76,4 +82,4 @@ Worker::processQueue($run_cron);
 
 Worker::unclaimProcess();
 
-Worker::endProcess();
+DI::process()->end();