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