Skip to content

Commit

Permalink
Add a way for JobExecution storage to be setup before used (#107)
Browse files Browse the repository at this point in the history
* Add a way for JobExecution storage to be setup before used

* Fixed code style

* Test DoctrineDBALJobExecutionStorage::createSchema deprecated method

* Fixed wrong usage of magic constants

* Removed deprecation test

* Proper test without deprecation
  • Loading branch information
yann-eugone authored Dec 6, 2023
1 parent e7a3a1e commit b86417c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Storage/SetupableJobExecutionStorageInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace Yokai\Batch\Storage;

/**
* A job execution having this interface tells the developers it should be setuped before being used.
*/
interface SetupableJobExecutionStorageInterface
{
/**
* Setup the storage.
*/
public function setup(): void;
}

0 comments on commit b86417c

Please sign in to comment.