for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace RDV\Bundle\MigrationBundle\Event;
class PreMigrationEvent extends MigrationEvent
{
/**
* @var array
* key = bundle name
* value = version
*/
protected $loadedVersions = [];
* Gets a list of the latest loaded versions for all bundles
*
* @return array
public function getLoadedVersions()
return $this->loadedVersions;
}
* Gets the latest version loaded version of the given bundle
* @param string $bundleName
* @return string|null
public function getLoadedVersion($bundleName)
return isset($this->loadedVersions[$bundleName])
? $this->loadedVersions[$bundleName]
: null;
* Sets a number of already loaded version of the given bundle
* @param string $version
public function setLoadedVersion($bundleName, $version)
$this->loadedVersions[$bundleName] = $version;