Webiny\Component\Bootstrap\ApplicationClasses\Application::getAbsolutePath PHP Method

getAbsolutePath() public method

Get application root absolute path.
public getAbsolutePath ( ) : string
return string
    public function getAbsolutePath()
    {
        return $this->environment->getApplicationAbsolutePath();
    }

Usage Example

Beispiel #1
0
 public function testGetAbsolutePath()
 {
     $env = Environment::getInstance();
     $env->initializeEnvironment(__DIR__ . '/../DemoApp/');
     $app = new Application($env);
     $this->assertSame(__DIR__ . '/../DemoApp/', $app->getAbsolutePath());
 }