vendor/galilee/pimcore-migrations/GalileeMigrationsBundle.php line 7

Open in your IDE?
  1. <?php
  2. namespace Galilee\MigrationsBundle;
  3. use Symfony\Component\HttpKernel\Bundle\Bundle;
  4. class GalileeMigrationsBundle extends Bundle
  5. {
  6.     const INSTALL_CLASSES_PATH PIMCORE_APP_ROOT '/Resources/install/class_sources/';
  7.     public function __construct()
  8.     {
  9.         // $overrideSymfonyPassRegister is to be used only on deployment issue of class install
  10.         // gitlab-ci must use
  11.         if(file_exists(PIMCORE_APP_ROOT.'/deploy.flag')){
  12.             $jsonFiles glob(self::INSTALL_CLASSES_PATH '*.json');
  13.             foreach ($jsonFiles as $path) {
  14.                 preg_match('~_class_(.*?)_export~'$path$output);
  15.                 $className end($output);
  16.                 if (!class_exists('\\Pimcore\\Model\\DataObject\\'.$className)) {
  17.                     class_alias('\\Pimcore\\Model\\DataObject\\Concrete''\\Pimcore\\Model\\DataObject\\'.$classNametrue);
  18.                 }
  19.             }
  20.         }
  21.     }
  22. }