/** * Remove an individual module defined in a package from configuration. * * @param string $module Module to remove * @param string $package Package in which module is defined * @param Collection $injectors Injectors to use for removal * @return void */ private function removeModuleFromConfig($module, $package, Collection $injectors) { $injectors->each(function ($injector) use($module, $package) { $this->io->write(sprintf('<info>Removing %s from package %s</info>', $module, $package)); $injector->remove($module, $this->io); }); }
/** * {@inheritDoc} */ public function remove($package, IOInterface $io) { $this->chain->each(function ($injector) use($package, $io) { $injector->remove($package, $io); }); }