Peridot\Configuration::getConfigurationFile PHP Method

getConfigurationFile() public method

Return the path to the Peridot configuration file. Returns a relative path if it exists, otherwise return the provided value
public getConfigurationFile ( ) : string
return string
    public function getConfigurationFile()
    {
        return $this->configurationFile;
    }

Usage Example

 /**
  * Load the Peridot environment.
  *
  * @return void
  */
 public function load(ReaderInterface $reader)
 {
     $this->configuration = $reader->getConfiguration();
     require_once $this->configuration->getDsl();
     $peridotCallback = (include $this->configuration->getConfigurationFile());
     if (is_callable($peridotCallback)) {
         call_user_func($peridotCallback, $this->emitter);
     }
 }