Skip to content

Commit 24c7124

Browse files
committed
Moved RunnableInterface and SchedulingInterface
from pipeline contracts to satellite contracts
1 parent 95b2c46 commit 24c7124

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

src/RunnableInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace Kiboko\Contract\Pipeline;
5+
trigger_deprecation('php-etl/pipeline-contracts', '0.5', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\\Contract\\Pipeline\\RunnableInterface', \Kiboko\Contract\Satellite\RunnableInterface::class);
66

7-
use Kiboko\Contract\Satellite\RunnableInterface as SatelliteRunableInterface;
8-
9-
/** @deprecated Use \Kiboko\Contract\Satellite\RunnableInterface instead */
10-
interface RunnableInterface extends SatelliteRunableInterface {}
7+
/*
8+
* @deprecated since Satellite 0.2, use Kiboko\Contract\Satellite\RunnableInterface instead.
9+
*/
10+
class_alias(\Kiboko\Contract\Satellite\RunnableInterface::class, 'Kiboko\\Contract\\Pipeline\\RunnableInterface');

src/SchedulingInterface.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace Kiboko\Contract\Pipeline;
5+
trigger_deprecation('php-etl/pipeline-contracts', '0.5', 'The "%s" class is deprecated, use "%s" instead.', 'Kiboko\\Contract\\Pipeline\\SchedulingInterface', \Kiboko\Contract\Satellite\SchedulingInterface::class);
66

7-
use Kiboko\Contract\Satellite\CodeInterface;
8-
use Kiboko\Contract\Satellite\RunnableInterface;
9-
10-
interface SchedulingInterface
11-
{
12-
public function job(CodeInterface $job, RunnableInterface $runnable): self;
13-
}
7+
/*
8+
* @deprecated since Satellite 0.2, use Kiboko\Contract\Satellite\SchedulingInterface instead.
9+
*/
10+
class_alias(\Kiboko\Contract\Satellite\SchedulingInterface::class, 'Kiboko\\Contract\\Pipeline\\SchedulingInterface');

0 commit comments

Comments
 (0)