mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Feature: [cron] Create an interface for CronManagerInterface
This commit is contained in:
parent
e0c9e12008
commit
ceee5e7eea
@ -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] ';
|
||||
|
||||
|
17
src/Bundle/ChillMainBundle/Cron/CronManagerInterface.php
Normal file
17
src/Bundle/ChillMainBundle/Cron/CronManagerInterface.php
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user