Feature: [cron] Create an interface for CronManagerInterface

This commit is contained in:
Julien Fastré 2022-12-12 21:14:33 +01:00
parent e0c9e12008
commit ceee5e7eea
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 18 additions and 1 deletions

View File

@ -19,7 +19,7 @@ use Exception;
use Psr\Log\LoggerInterface;
use function array_key_exists;
class CronManager
class CronManager implements CronManagerInterface
{
private const LOG_PREFIX = '[cron manager] ';

View File

@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Cron;
interface CronManagerInterface
{
public function run(?string $forceJob = null): void;
}