Open
Description
During installation of this package, during early site builds where the 'sites' directory does not exist under $this->appDir/sites
an InvalidArgumentException
or a DirectoryNotFoundException
will be thrown by the Symfony Finder package.
This can cause failed installations and also causes the drupal:paranoia
command to fail.
These exceptions should be caught by the Installer
and handled gracefully.
It is safe to assumes public files directories do not exist under $this->appDir
if the sites
directory is not found.
Expected behavior
Failing gracefully without attempting to link the non existent directories.
Actual behavior
Uncaught exception breaking package installation, plugin events and the provided commands.
Steps to reproduce
During install
- Create a project without a 'sites' directory inside the configured
app-dir
- Require
drupal-composer/drupal-paranoia
- See the uncaught exception in console output
When running as a command
- Create a project without a 'sites' directory inside the configured
app-dir
- Require
drupal-composer/drupal-paranoia
- Run
composer drupal:paranoia
- See the uncaught exception in console output
Possible solution
Metadata
Metadata
Assignees
Labels
No labels