public function setup(array $requestVars, VagrantBundle $vagrantBundle) { parent::setup($requestVars, $vagrantBundle); // Add vagrant file $vagrantFile = $this->getVagrantfile($requestVars); $vagrantBundle->setVagrantFile($vagrantFile); }
/** * {@inheritdoc} */ public function setup(array $requestVars, VagrantBundle $vagrantBundle) { if (!$this->installRole($requestVars)) { return; } $playbook = $vagrantBundle->getPlaybook(); $roleMap = $this->getRolePackageMap(); foreach ($roleMap as $role => $package) { if ($playbook->hasRole($role)) { $this->addPhpPackage($package, $requestVars); } } parent::setup($requestVars, $vagrantBundle); }
protected function installRole($requestVars) { return parent::installRole($requestVars) && $this->phpWillBeInstalled($requestVars); }