diff options
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/cron.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/cron.php b/bin/cron.php new file mode 100644 index 0000000..f71c559 --- /dev/null +++ b/bin/cron.php | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #!/usr/bin/env php | ||
| 2 | <?php | ||
| 3 | // bin/cron.php | ||
| 4 | |||
| 5 | declare(strict_types=1); | ||
| 6 | |||
| 7 | chdir('bin'); | ||
| 8 | require('../src/Config.php'); | ||
| 9 | Config::load('../config/config.ini'); | ||
| 10 | require '../src/model/doctrine-bootstrap.php'; | ||
| 11 | |||
| 12 | EmailService::cleanEmails($entityManager); \ No newline at end of file | ||
