PHP Classes
elePHPant
Icontem

File: tests/CreatesApplication.php

Recommend this page to a friend!
  Classes of Renato De Oliveira Lucena  >  PHP Pokemon Script  >  tests/CreatesApplication.php  >  Download  
File: tests/CreatesApplication.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Pokemon Script
Provides an API to manage a database of Pokemons
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;
    }
}