1
0
Fork 0
mirror of https://github.com/friendica/friendica-directory synced 2024-11-15 16:19:27 +01:00
friendica-docker/bin/cron.php

24 lines
630 B
PHP
Executable file

#!/usr/bin/env php
<?php
ini_set('error_log', __DIR__ . '/../logs/cron.log');
ini_set('log_errors', true);
ini_set('display_errors', false);
require_once __DIR__ . '/../vendor/autoload.php';
$settings = require __DIR__ . '/../src/settings.php';
$container = new Slim\Container($settings);
require __DIR__ . '/../src/dependencies.php';
(new \Friendica\Directory\Controllers\Cron(
$container->get('atlas'),
$container->get('\Friendica\Directory\Pollers\Profile'),
$container->get('\Friendica\Directory\Pollers\Server'),
$container->get('\Friendica\Directory\Pollers\Directory'),
$container->get('logger')
))->execute();