public function addLoader(LoaderInterface $loader) : void { $current = $this->loaders; $this->loaders = (static function () use ($current, $loader) : \Generator { yield from $current; (yield $loader); })(); $this->hasSourceCache = []; }