- Issue created by @Luke_Nuke
`FileSystem->prepareDirectory` method doesn't handle stream wrappers that require arguments in the constructor. If the directory path is supposed to be handled by such a wrapper, the exception `ArgumentCountError: Too few arguments to function` will occur because arguments will not be passed to the constructor.
This is because `prepareDirectory` doesn't depend on a stream wrapper service for what it's doing, it just invokes core PHP functions that instantiate wrapper themselves, but they lack the ability to pass arguments to the constructor of such an instance.
See: https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co...
I don't have a solution yet, but I'll be thinking about it. For now, I just wanted to report the issue.
Active
11.1 🔥
file system