mirror of
https://github.com/jbcr/ezmigrationbundle.git
synced 2026-03-24 17:02:15 +01:00
25 lines
602 B
PHP
25 lines
602 B
PHP
<?php
|
|
|
|
namespace Kaliop\eZMigrationBundle\API;
|
|
|
|
use Kaliop\eZMigrationBundle\API\Value\MigrationDefinition;
|
|
use Kaliop\eZMigrationBundle\API\Value\Migration;
|
|
|
|
/**
|
|
* Implemented by classes which have 'context' data that should be stored/restored when migrations are suspended
|
|
*/
|
|
interface ContextProviderInterface
|
|
{
|
|
/**
|
|
* @param string $migrationName
|
|
* @return array|null
|
|
*/
|
|
public function getCurrentContext($migrationName);
|
|
|
|
/**
|
|
* @param string $migrationName
|
|
* @param array $context
|
|
*/
|
|
public function restoreContext($migrationName, array $context);
|
|
}
|