Eva\EvaEngine\Engine::getConfigPath PHP Method

getConfigPath() public method

public getConfigPath ( ) : string
return string
    public function getConfigPath()
    {
        if ($this->configPath) {
            return $this->configPath;
        }
        return $this->configPath = $this->appRoot . '/config';
    }

Usage Example

Example #1
0
 public function testPath()
 {
     $engine = new Engine('foo');
     $this->assertEquals('foo', $engine->getAppRoot());
     $this->assertEquals('foo/config', $engine->getConfigPath());
     $this->assertEquals('foo/modules', $engine->getModulesPath());
     $engine->setConfigPath('bar');
     $engine->setModulesPath('bar');
     $this->assertEquals('bar', $engine->getConfigPath());
     $this->assertEquals('bar', $engine->getModulesPath());
 }