protected function bootApplication()
    {
        $projectDir = explode($this->config['packages'], \Codeception\Configuration::projectDir())[0];
        $projectDir .= $this->config['root'];
        require $projectDir . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

        \Illuminate\Support\ClassLoader::register();

        $bootstrapFile = $projectDir . $this->config['bootstrap'];

        if (! file_exists($bootstrapFile)) {
            throw new ModuleConfig(
                $this, "Laravel bootstrap file not found in $bootstrapFile.\nPlease provide a valid path to it using 'bootstrap' config param. "
            );
        }

        $app = require $bootstrapFile;
        $app->loadEnvironmentFrom($this->config['environment_file']);

        return $app;
    }
protected function bootApplication()
    {
        $projectDir = explode($this->config['packages'], \Codeception\Configuration::projectDir())[0];
        $projectDir .= $this->config['root'];
        require $projectDir . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

        \Illuminate\Support\ClassLoader::register();

        $bootstrapFile = $projectDir . $this->config['bootstrap'];

        if (! file_exists($bootstrapFile)) {
            throw new ModuleConfig(
                $this, "Laravel bootstrap file not found in $bootstrapFile.\nPlease provide a valid path to it using 'bootstrap' config param. "
            );
        }

        $app = require $bootstrapFile;
        $app->loadEnvironmentFrom($this->config['environment_file']);

        return $app;
    }
protected function bootApplication ( ) { $ projectDir = explode ( $ this -> config [ 'packages' ] , \ Codeception \ Configuration :: projectDir ( ) ) [ 0 ] ; $ projectDir .= $ this -> config [ 'root' ] ; require $ projectDir . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php' ; \ Illuminate \ Support \ ClassLoader :: register ( ) ; $ bootstrapFile = $ projectDir . $ this -> config [ 'bootstrap' ] ; if ( ! file_exists ( $ bootstrapFile ) ) { throw new ModuleConfig ( $ this , "Laravel bootstrap file not found in $bootstrapFile.\nPlease provide a valid path to it using 'bootstrap' config param. " ) ; } $ app = require $ bootstrapFile ; $ app -> loadEnvironmentFrom ( $ this -> config [ 'environment_file' ] ) ; return $ app ; }
Boot the Laravel application object.

@return \Illuminate\Foundation\Application
@throws \Codeception\Exception\ModuleConfig
Boot the Laravel application object .