protected function findBatchActions() { $batchActions = $this->getVariable('batch_actions', array()); foreach ($batchActions as $actionName => $actionParams) { $action = $this->findBatchAction($actionName); if (!$action) { $action = new Action($actionName); } if ($globalCredentials = $this->getGenerator()->getFromYaml('params.credentials')) { // If generator is globally protected by credentials // batch actions are also protected $action->setCredentials($globalCredentials); } $this->setUserBatchActionConfiguration($action); $this->addBatchAction($action); } }