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

README clean up #282

Merged
merged 15 commits into from
Dec 3, 2019
Merged

README clean up #282

merged 15 commits into from
Dec 3, 2019

Conversation

rpkamp
Copy link
Contributor

@rpkamp rpkamp commented Nov 29, 2019

Q A
Bug fix no
New feature no
BC breaks no
Deprecations no
Tests pass N/A
Fixed tickets -
License MIT

The requirements as they were might suggest that people need to install
guzzle manually, but that's not the case. So that was removed from the
requirements, and requirements was renamed to prerequisites, as that
sounds less harsh and is used more often in this kind of context.
Describe installation with Symfony Flex as default, but also offer ways
to help projects that do not use Symfony Flex.

Also stop recommending people to use dev-master, that should really not
be done unless you really know what you're doing. And people who know
what they're doing don't need documentation on how to require
dev-master.
How to use the bundle is different from how to configure it.
Configuration deserves its own section for discoverability.
The MockHandler is an advanced topic that should be discussed on its
own.

Also, having it in the configuration example that people may copy/paste
is really not practical because they will have a client that doesn't
actually do anything, which is confusing to people who don't know what a
MockHandler is.

Lastly, to use the MockHandler effectively, one should be able to prime
it before it is added to a Client, but that is not possible using this
bundle, so let's not recommend doing that at all.
Getting public services from the DI container has been discouraged by
Symfony for a while now, let's not show people how it's done, but show
them the recommended Symfony way instead, also providing a link for
those who prefer autowiring over manual wiring.
Also replace XML with YAML, which is used in the rest of the README as
well
@rpkamp rpkamp changed the title Documentation fixes README clean up Nov 29, 2019
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
@gregurco gregurco added this to the v8 milestone Dec 2, 2019
README.md Outdated Show resolved Hide resolved
Copy link
Member

@gregurco gregurco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 👍

Copy link
Member

@florianpreusner florianpreusner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks, @rpkamp!

@florianpreusner florianpreusner merged commit 4c85f5f into 8p:master Dec 3, 2019
@rpkamp rpkamp deleted the documentation-fixes branch December 3, 2019 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants