configFile = sprintf( '%s/%s', $projectDirectory, $this->configFile ); } } /** * Determine if the configuration file exists and contains modules. */ public function locate(): bool { if (! is_file($this->configFile)) { return false; } $config = file_get_contents($this->configFile); return 1 === preg_match($this->expected, $config); } }