Skip to content

Commit b86417c

Browse files
authored
Add a way for JobExecution storage to be setup before used (#107)
* 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
1 parent e7a3a1e commit b86417c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Yokai\Batch\Storage;
6+
7+
/**
8+
* A job execution having this interface tells the developers it should be setuped before being used.
9+
*/
10+
interface SetupableJobExecutionStorageInterface
11+
{
12+
/**
13+
* Setup the storage.
14+
*/
15+
public function setup(): void;
16+
}

0 commit comments

Comments
 (0)