Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9f87b6

Browse files
committed
minor #29273 [Contracts] clarify the README (nicolas-grekas)
This PR was merged into the 4.2-dev branch. Discussion ---------- [Contracts] clarify the README | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Hopefully removing some potential confusions or promises that might be difficult to fulfill. Commits ------- 07e2cc2 [Contracts] clarify the README
2 parents 227cf2c + 07e2cc2 commit d9f87b6

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/Symfony/Contracts/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ FAQ
2626

2727
The abstractions in this package are useful to achieve loose coupling and
2828
interoperability. By using the provided interfaces as type hints, you are able
29-
to reuse any implementation that matches their contracts. It could be a Symfony
29+
to reuse any implementations that match their contracts. It could be a Symfony
3030
component, or another one provided by the PHP community at large.
3131

3232
Depending on their semantics, some interfaces can be combined with autowiring to
@@ -38,13 +38,11 @@ any other means provided by your framework.)
3838

3939
### How is this different from PHP-FIG's PSRs?
4040

41-
When applicable, the provided contracts are built on top of PHP-FIG's PSRs. We
42-
encourage relying on them and won't duplicate the effort. Still, the FIG has
43-
different goals and different processes. Here, we don't need to seek universal
44-
standards. Instead, we're providing abstractions that are compatible with the
45-
implementations provided by Symfony. This should actually also contribute
46-
positively to the PHP-FIG (of which Symfony is a member), by hinting the group
47-
at some abstractions the PHP world might like to take inspiration from.
41+
When applicable, the provided contracts are built on top of PHP-FIG's PSRs. But
42+
the group has different goals and different processes. Here, we're focusing on
43+
providing abstractions that are useful on their own while still compatible with
44+
implementations provided by Symfony. Although not the main target, we hope that
45+
the declared contracts will directly or indirectly contribute to the PHP-FIG.
4846

4947
### Why isn't this package split into several packages?
5048

0 commit comments

Comments
 (0)