/** * Adds runonce files of a package to the RunonceManager instance. * * @param PackageInterface $package The package being processed. * * @param array $files The file names of all runonce files. * * @return void */ protected function addRunonces(PackageInterface $package, array $files) { $rootDir = $this->getInstallPath($package); foreach ($files as $file) { $this->runonceManager->addFile($this->filesystem->normalizePath($rootDir . '/' . $file)); } }