Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silently fail on 'sites' directory not existing. #20

Open
wants to merge 2 commits into
base: 1.x
Choose a base branch
from

Conversation

JParkinson1991
Copy link

Issue links

#19

When determining public file paths if the parent sites directory does not exist
and exception is thrown which can break package command execution as well as
initial installation (assuming config is defined prior to install).

If the sites directory does not exist it is a safe assumption that the files
directories do not exist either so silently failing and returning an empty array
can be used safely and should not cause any other issues.

Catch the base exception as Symfony finder can throw varying exceptions based
on (assume) package versions. InvalidArgumentException as well as
DirectoryNotFound exceptions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants