PHP 클래스 PhpSpec\Laravel\Util\Laravel

파일 보기 프로젝트 열기: benconstable/phpspec-laravel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$app Illuminate\Foundation\Application The Illuminate application instance.
$appPath string Path to the root of the Laravel application.
$env string The Laravel testing environment.

공개 메소드들

메소드 설명
__construct ( string $env, string $appPath ) Constructor.
getAppPath ( ) : string Get the root Laravel application path.
getEnv ( ) : string Get the Laravel application environment being used.
refreshApplication ( Illuminate\Foundation\Application | null $app = null ) : void Refresh the application instance.

보호된 메소드들

메소드 설명
createApplication ( ) : Illuminate\Foundation\Application Creates a Laravel application.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $env, string $appPath )
$env string Laravel testing environment. 'testing' by default
$appPath string Path to the Laravel bootstrap dir

createApplication() 보호된 메소드

Creates a Laravel application.
protected createApplication ( ) : Illuminate\Foundation\Application
리턴 Illuminate\Foundation\Application

getAppPath() 공개 메소드

Get the root Laravel application path.
public getAppPath ( ) : string
리턴 string Root laravel app path

getEnv() 공개 메소드

Get the Laravel application environment being used.
public getEnv ( ) : string
리턴 string Environment name

refreshApplication() 공개 메소드

Refresh the application instance.
public refreshApplication ( Illuminate\Foundation\Application | null $app = null ) : void
$app Illuminate\Foundation\Application | null Optionally provide your own unbooted Laravel Application instance. This parameter can largely be ignored and is used just for unit testing
리턴 void

프로퍼티 상세

$app 보호되어 있는 프로퍼티

The Illuminate application instance.
protected Application,Illuminate\Foundation $app
리턴 Illuminate\Foundation\Application

$appPath 보호되어 있는 프로퍼티

Path to the root of the Laravel application.
protected string $appPath
리턴 string

$env 보호되어 있는 프로퍼티

The Laravel testing environment.
protected string $env
리턴 string