-
Notifications
You must be signed in to change notification settings - Fork 69
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
Docs: Readability issue when passing constructor args #170
Comments
Hi! |
I have mixed feelings, solution 3 is good when you only have one line as an option. But 1 seems fine to me when there are several lines. And this is what Symfony's documentation seems to promote |
Agree on solution 2, definitely my least favourite one since it depends on named argument. Your call on 1 or 3. If 1 is what Symfony docs follow, I'd happily send PR following style no 1. Any of those 3 are more obvious than the current one, IMHO. |
Let's go for solution 1 then |
Refers to documentation for creating custom client when using compatible S3 storage.
Link: https://github.com/thephpleague/flysystem-bundle/blob/3.x/docs/2-cloud-storage-providers.md#digitalocean-spaces
I think it's very easy to overlook the fact you have to pass two blank spaces in order for YAML parser to read this correctly.
Proposed solutions.
1:
2:
3:
Number two is used by some popular packages, such as HWIOAuthBundle (https://github.com/hwi/HWIOAuthBundle/blob/master/docs/3-configuring_the_security_layer.md#a-have-a-user-provider-that-implements-oauthawareuserproviderinterface)
I can send relevant PRs if you agree this is useful.
The text was updated successfully, but these errors were encountered: