PHP Classes

File: server/tests/CreatesApplication.php

Recommend this page to a friend!
  Classes of mohammad anzawi   PHP Wallet API and Application   server/tests/CreatesApplication.php   Download  
File: server/tests/CreatesApplication.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Wallet API and Application
Application to manage a wallet by calling an API
Author: By
Last change:
Date: 2 years ago
Size: 380 bytes
 

Contents

Class file image Download
<?php

namespace Tests;

use
Illuminate\Contracts\Console\Kernel;

trait
CreatesApplication
{
   
/**
     * Creates the application.
     *
     * @return \Illuminate\Foundation\Application
     */
   
public function createApplication()
    {
       
$app = require __DIR__.'/../bootstrap/app.php';

       
$app->make(Kernel::class)->bootstrap();

        return
$app;
    }
}