mirror of
https://github.com/jbcr/ezmigrationbundle.git
synced 2026-04-25 01:18:04 +02:00
24 lines
715 B
PHP
24 lines
715 B
PHP
<?php
|
|
|
|
namespace Kaliop\eZMigrationBundle\API;
|
|
|
|
/**
|
|
* Implemented by classes which finds migrations definitions files
|
|
*/
|
|
interface LoaderInterface
|
|
{
|
|
/**
|
|
* @param array $paths either dir names or file names
|
|
* @return \Kaliop\eZMigrationBundle\API\Value\MigrationDefinition[] migrations definitions. key: name, value: path
|
|
* @throws \Exception
|
|
*/
|
|
public function listAvailableDefinitions(array $paths = array());
|
|
|
|
/**
|
|
* @param array $paths
|
|
* @return \Kaliop\eZMigrationBundle\API\Collection\MigrationDefinitionCollection unparsed definitions. key has to be the migration name
|
|
* @throws \Exception
|
|
*/
|
|
public function loadDefinitions(array $paths = array());
|
|
}
|