*/ public static function files(): Generator { /** @var SplFileInfo[] $paths */ $paths = ServiceContainer::$finder; foreach ($paths as $path) { if ($path->isFile()) { yield $path->getRealPath(); } } } }