Beispiel #1
0
 /**
  * Returns the available migrations
  *
  * @return array
  */
 public static function available()
 {
     $bundles = array_merge(\CCFinder::$bundles, array('app' => \CCPath::get('', null)));
     $available = array();
     foreach ($bundles as $name => $path) {
         $directory = $path . \ClanCats::directory('migration');
         if (is_dir($directory)) {
             $available[strtolower($name)] = static::get_migrations($directory);
         }
     }
     return $available;
 }