mirror of
https://github.com/JBDevLabs/ezmigrationbundle.git
synced 2026-03-24 17:02:18 +01:00
24 lines
617 B
PHP
24 lines
617 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 string[] migrations definitions. key: name, value: path
|
|
* @throws \Exception
|
|
*/
|
|
public function listAvailableDefinitions($paths = array());
|
|
|
|
/**
|
|
* @param array $paths
|
|
* @return string[] migrations definitions. key: name, value: contents of the definition, as string
|
|
* @throws \Exception
|
|
*/
|
|
public function loadDefinitions($paths = array());
|
|
}
|