Documentation

LoadConnection

Use case for loading database connection from .env file.

This use case does NOT require database access.

Tags
since
3.0.0

Table of Contents

Properties

$repository  : FileSystemEnvRepository

Methods

__construct()  : mixed
Constructor.
envExists()  : bool
Check if .env file exists.
execute()  : DatabaseConnectionDTO
Execute the use case.
getEnvPath()  : string
Get path to .env file.

Properties

Methods

envExists()

Check if .env file exists.

public envExists() : bool
Return values
bool

True if file exists

getEnvPath()

Get path to .env file.

public getEnvPath() : string
Return values
string

Path to .env file


        
On this page

Search results