ZF\Apigility\Admin\Model\ModulePathSpec::setApplicationPath PHP Method

setApplicationPath() public method

Set the path to the application directory
public setApplicationPath ( string $path )
$path string
    public function setApplicationPath($path)
    {
        $this->applicationPath = $this->normalizePath($path);
        return $this;
    }

Usage Example

 /**
  * Set path to use when creating new modules
  *
  * @param  string $path
  * @return $this
  */
 public function setModulePath($path)
 {
     /*
      * maintain backwards compatibility
      * NOTE: modulePath in this case, is really the application path
      */
     $this->modulePathSpec->setApplicationPath($path);
     return $this;
 }