Gumdrop\Application::setSourceLocation PHP Method

setSourceLocation() public method

public setSourceLocation ( $sourceLocation )
    public function setSourceLocation($sourceLocation)
    {
        $this->sourceLocation = $sourceLocation;
    }

Usage Example

Ejemplo n.º 1
0
 public function setSourceFallback()
 {
     if ($this->app->getSourceLocation() == '') {
         //default to the project folder depending on gumdrop
         //example: project/_vendor/simonjodet/gumdrop/Gumdrop/
         $this->app->setSourceLocation(realpath(__DIR__) . '/../../../../');
     }
 }