public function getFromReference($reference) { $reference .= '::'; $this->_referenceParser->parse($reference); $path = $this->_referenceParser->getFullPath('resources/migrations'); if (!$this->_filesystem->exists($path)) { return array(); } $files = $this->_getFinder()->files()->in($path); $migrations = array(); foreach ($files as $file) { if ($file->isFile()) { $fileReference = 'cog://' . $reference . 'resources/migrations/' . $file->getBasename(); $key = $this->_getKey($fileReference); $migrations[$key] = $this->resolve($file, $fileReference); } } return $migrations; }