/**
  * NB: returns UNPARSED definitions
  *
  * @param string[] $paths
  * @return MigrationDefinitionCollection key: migration name, value: migration definition as binary string
  */
 public function getMigrationsDefinitions(array $paths = array())
 {
     // we try to be flexible in file types we support, and the same time avoid loading all files in a directory
     $handledDefinitions = array();
     foreach ($this->loader->listAvailableDefinitions($paths) as $migrationName => $definitionPath) {
         foreach ($this->DefinitionParsers as $definitionParser) {
             if ($definitionParser->supports($migrationName)) {
                 $handledDefinitions[] = $definitionPath;
             }
         }
     }
     // we can not call loadDefinitions with an empty array using the Filesystem loader, or it will start looking in bundles...
     if (empty($handledDefinitions) && !empty($paths)) {
         return new MigrationDefinitionCollection();
     }
     return $this->loader->loadDefinitions($handledDefinitions);
 }