EnvironmentFile
class EnvironmentFile
Methods
Resolve the package or workbench environment file.
Resolve the package or workbench environment file, falling back to the skeleton example.
Resolve the source path for testbench config and workbench fixtures.
Resolve the first existing file from the ordered candidate list.
Get the ordered environment file candidate names.
Resolve the skeleton environment fallback.
Details
at line 17
__construct(Filesystem $filesystem)
Create a new environment file resolver.
at line 25
string|null
package(string $workingPath, string $filename = '.env')
Resolve the package or workbench environment file.
at line 38
string|null
packageOrSkeletonFallback(string $workingPath, string $appBasePath, string $filename = '.env')
Resolve the package or workbench environment file, falling back to the skeleton example.
at line 47
string
sourcePath(string $workingPath)
Resolve the source path for testbench config and workbench fixtures.
at line 67
protected string|null
firstExisting(string $path, array $candidates)
Resolve the first existing file from the ordered candidate list.
at line 85
protected array
candidateNames(string $filename)
Get the ordered environment file candidate names.
at line 100
protected string|null
skeletonFallback(string $appBasePath)
Resolve the skeleton environment fallback.