Skip to content

Commit

Permalink
Moved RunnableInterface and SchedulingInterface
Browse files Browse the repository at this point in the history
from pipeline contracts to satellite contracts
  • Loading branch information
gplanchat committed Nov 20, 2023
1 parent 95b2c46 commit 24c7124
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
10 changes: 5 additions & 5 deletions src/RunnableInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Kiboko\Contract\Pipeline;
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);

use Kiboko\Contract\Satellite\RunnableInterface as SatelliteRunableInterface;

/** @deprecated Use \Kiboko\Contract\Satellite\RunnableInterface instead */
interface RunnableInterface extends SatelliteRunableInterface {}
/*
* @deprecated since Satellite 0.2, use Kiboko\Contract\Satellite\RunnableInterface instead.
*/
class_alias(\Kiboko\Contract\Satellite\RunnableInterface::class, 'Kiboko\\Contract\\Pipeline\\RunnableInterface');
13 changes: 5 additions & 8 deletions src/SchedulingInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

declare(strict_types=1);

namespace Kiboko\Contract\Pipeline;
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);

Check failure on line 5 in src/SchedulingInterface.php

View workflow job for this annotation

GitHub Actions / phpstan

Class Kiboko\Contract\Satellite\SchedulingInterface not found.

Check failure on line 5 in src/SchedulingInterface.php

View workflow job for this annotation

GitHub Actions / phpstan

Class Kiboko\Contract\Satellite\SchedulingInterface not found.

use Kiboko\Contract\Satellite\CodeInterface;
use Kiboko\Contract\Satellite\RunnableInterface;

interface SchedulingInterface
{
public function job(CodeInterface $job, RunnableInterface $runnable): self;
}
/*
* @deprecated since Satellite 0.2, use Kiboko\Contract\Satellite\SchedulingInterface instead.
*/
class_alias(\Kiboko\Contract\Satellite\SchedulingInterface::class, 'Kiboko\\Contract\\Pipeline\\SchedulingInterface');

0 comments on commit 24c7124

Please sign in to comment.