AppserverIo\Appserver\Application\Application::getAppBase PHP Метод

getAppBase() публичный Метод

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

Usage Example

Пример #1
0
 /**
  * Test if the getter/setter for the app base works.
  *
  * @return void
  */
 public function testGetAppBase()
 {
     $this->assertEquals(ApplicationTest::APP_BASE, $this->application->getAppBase());
 }