Пример #1
0
 public function processBundleConfig($symfonizeConfig)
 {
     $bundles = $symfonizeConfig['bundles'];
     self::$bundles = $bundles;
     foreach ($bundles as $bundle) {
         Loader::addBundle($bundle);
     }
 }
Пример #2
0
 /**
  * Constructor
  */
 public function __construct()
 {
     //Ignore if no file to keep ZF controller unit tests working
     if (file_exists($this->appConfigPath)) {
         $appConfig = (require $this->appConfigPath);
         self::$symfonizeConfig = $appConfig['symfonize_zf'];
     }
     $bundleLoader = new BundleLoader();
     $bundleLoader->loadBundles(self::$symfonizeConfig);
 }