/** * Add any files which were deployed to the .gitignore * Remove any files which were removed to the .gitignore * * @param PackageDeployEvent $packageDeployEvent */ public function __invoke(PackageDeployEvent $packageDeployEvent) { $this->gitIgnore->addMultipleEntries($packageDeployEvent->getDeployEntry()->getDeployStrategy()->getDeployedFiles()); $this->gitIgnore->removeMultipleEntries($packageDeployEvent->getDeployEntry()->getDeployStrategy()->getRemovedFiles()); $this->gitIgnore->write(); }
/** * Add any files which were installed to the .gitignore * * @param PackageDeployEvent $packageDeployEvent */ public function addNewInstalledFiles(PackageDeployEvent $packageDeployEvent) { $this->gitIgnore->addMultipleEntries($packageDeployEvent->getDeployEntry()->getDeployStrategy()->getDeployedFiles()); $this->gitIgnore->write(); }