public function getApplication()
    {
        //load drupals autoload.php, so their classes are available
        if (file_exists('./vendor/autoload.php')) {
            $autoloader = require './vendor/autoload.php';
        } else {
            $autoloader = require '../vendor/autoload.php';
        }

        $sitePath = 'sites/default';

        Settings::initialize('./', $sitePath, $autoloader);

        $app = new DrupalKernel($this->appenv, $autoloader);
        $app->setSitePath($sitePath);

        return $app;
    }
public function getApplication()
    {
        //load drupals autoload.php, so their classes are available
        if (file_exists('./vendor/autoload.php')) {
            $autoloader = require './vendor/autoload.php';
        } else {
            $autoloader = require '../vendor/autoload.php';
        }

        $sitePath = 'sites/default';

        Settings::initialize('./', $sitePath, $autoloader);

        $app = new DrupalKernel($this->appenv, $autoloader);
        $app->setSitePath($sitePath);

        return $app;
    }
public function getApplication ( ) { //load drupals autoload.php, so their classes are available if ( file_exists ( './vendor/autoload.php' ) ) { $ autoloader = require './vendor/autoload.php' ; } else { $ autoloader = require '../vendor/autoload.php' ; } $ sitePath = 'sites/default' ; Settings :: initialize ( './' , $ sitePath , $ autoloader ) ; $ app = new DrupalKernel ( $ this -> appenv , $ autoloader ) ; $ app -> setSitePath ( $ sitePath ) ; return $ app ; }
Create a Drupal application.
Create a Drupal application .