files()->in($this->root) as $file) { $matches = []; if(preg_match($x, $file->getBasename(), $matches)) { $versions[] = $matches[1]; } } return $versions; } /** * {@inheritdoc} */ public function getPath($version = '') { return sprintf('%s/scheduler%s.log', $this->root, $version); } }