guessApplicationRoot example


  public function __construct($environment$class_loader$allow_dumping = TRUE, $app_root = NULL) {
    $this->environment = $environment;
    $this->classLoader = $class_loader;
    $this->allowDumping = $allow_dumping;
    if ($app_root === NULL) {
      $app_root = static::guessApplicationRoot();
    }
    $this->root = $app_root;
  }

  /** * Determine the application root directory based on this file's location. * * @return string * The application root. */
  protected static function guessApplicationRoot() {
    
Home | Imprint | This part of the site doesn't use cookies.