Beispiel #1
0
 /**
  * Apply settings to current environment
  *
  * @throws \Exception
  * @return bool
  */
 public function apply()
 {
     foreach ($this->handlerCollection as $handler) {
         /* @var $handler Handler\HandlerInterface */
         $res = $handler->apply();
         if (!$res) {
             throw new \Exception('Error in handler: ' . $handler->getLabel());
         }
     }
     DbConnection::commitAllTransactions();
     return true;
 }