AppserverIo\Appserver\Application\Application::getAppBase PHP Method

getAppBase() public method

Returns the absolute path to the applications base directory.
public getAppBase ( ) : string
return string The app base directory
    public function getAppBase()
    {
        return $this->getNamingDirectory()->search(sprintf('php:env/%s/appBase', $this->getUniqueName()));
    }

Usage Example

コード例 #1
0
ファイル: ApplicationTest.php プロジェクト: ruchee/appserver
 /**
  * Test if the getter/setter for the app base works.
  *
  * @return void
  */
 public function testGetAppBase()
 {
     $this->assertEquals(ApplicationTest::APP_BASE, $this->application->getAppBase());
 }