-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Scenario: I have a path for my app's content, which defaults to /path/to/webroot/content by default, but can be overridden via an environment variable:
$content= new Path($this->environment->variable('APP_CONTENT') ?? $this->environment->path('content'));Small glitches here:
- We create an
io.Pathelement when the environment variable is unset althoughEnvironment::path()already returns one - We need an import of
io.Path
Is there a more concise way of writing this?
Metadata
Metadata
Assignees
Labels
No labels