release; } /** * {@inheritdoc} */ public function require_all_upgrades() { return false; } /** * {@inheritdoc} */ public function getDoctrineMigrations() { return []; } /** * {@inheritdoc} */ public function concern() { return $this->concern; } /** * {@inheritdoc} */ public function apply(base $appbox, Application $app) { $finder = new Finder(); $fs = new Filesystem(); foreach ($finder->files()->in($app['root.path'].'/config/status') as $file) { if (!$file->isFile()) { continue; } $fileName = $file->getFileName(); $chunks = explode('-', $fileName); if (count($chunks) < 4) { continue; } $suffix = array_pop($chunks); $uniqid = md5(implode('-', $chunks)); $fs->rename($file->getRealPath(), $app['root.path'].'/config/status/' . $uniqid . '-' . $suffix); if ($fs->exists($app['root.path'] . '/www/custom/status/' . $file->getFileName())) { $fs->remove($app['root.path'] . '/www/custom/status/' . $file->getFileName()); } } $app['filesystem']->mirror($app['root.path'] . '/config/status/', $app['root.path'] . '/www/custom/status/'); } }