Skip to content

Commit 46fc6ac

Browse files
committed
Merge branch '4.1' into 4.2
* 4.1: Change wrong class name Fix app.css comment syntax typo in sample of code Update doctrine.rst inject to the method instead of using the container Update contribution docs to reflect migration to SymfonyCloud
2 parents f22904d + cba0245 commit 46fc6ac

File tree

9 files changed

+22
-27
lines changed

9 files changed

+22
-27
lines changed

README.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ We love contributors! For more information on how you can contribute to the
1515
Symfony documentation, please read
1616
[Contributing to the Documentation](https://symfony.com/doc/current/contributing/documentation/overview.html)
1717

18-
Platform.sh
19-
-----------
18+
SymfonyCloud
19+
------------
2020

21-
Pull requests are automatically built by [Platform.sh](https://platform.sh).
21+
Pull requests are automatically built by [SymfonyCloud](https://symfony.com/cloud).
2222

2323
Docker
2424
------
Binary file not shown.
Loading

contributing/documentation/overview.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -229,22 +229,22 @@ this hard work, it's **time to celebrate again!**
229229
Review your changes
230230
-------------------
231231

232-
Every GitHub Pull Request is automatically built and deployed by `Platform.sh`_
233-
on a single environment that you can access on your browser to review your
234-
changes.
232+
Every GitHub Pull Request is automatically built and deployed by
233+
`SymfonyCloud`_ on a single environment that you can access on your browser to
234+
review your changes.
235235

236-
.. image:: /_images/contributing/docs-pull-request-platformsh.png
236+
.. image:: /_images/contributing/docs-pull-request-symfonycloud.png
237237
:align: center
238-
:alt: Platform.sh Pull Request Deployment
238+
:alt: SymfonyCloud Pull Request Deployment
239239

240-
To access the `Platform.sh`_ environment URL, go to your Pull Request page on
241-
GitHub, click on the **Show all checks** link and finally, click on the ``Details``
242-
link displayed for Platform.sh service.
240+
To access the `SymfonyCloud`_ environment URL, go to your Pull Request page on
241+
GitHub, click on the **Show all checks** link and finally, click on the
242+
``Details`` link displayed for SymfonyCloud service.
243243

244244
.. note::
245245

246246
Only Pull Requests to maintained branches are automatically built by
247-
Platform.sh. Check the `roadmap`_ for maintained branches.
247+
SymfonyCloud. Check the `roadmap`_ for maintained branches.
248248

249249
Build the Documentation Locally
250250
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -326,7 +326,7 @@ definitely don't want you to waste your time!
326326
.. _`SymfonyConnect`: https://connect.symfony.com/
327327
.. _`Symfony Documentation Badge`: https://connect.symfony.com/badge/36/symfony-documentation-contributor
328328
.. _`sync your fork`: https://help.github.com/articles/syncing-a-fork
329-
.. _`Platform.sh`: https://platform.sh
329+
.. _`SymfonyCloud`: https://symfony.com/cloud
330330
.. _`roadmap`: https://symfony.com/roadmap
331331
.. _`pip`: https://pip.pypa.io/en/stable/
332332
.. _`pip installation`: https://pip.pypa.io/en/stable/installing/

doctrine.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ In addition to the query builder, you can also query with `Doctrine Query Langua
675675
FROM App\Entity\Product p
676676
WHERE p.price > :price
677677
ORDER BY p.price ASC'
678-
)->setParameter('price', 1000);
678+
)->setParameter('price', $price);
679679

680680
// returns an array of Product objects
681681
return $query->execute();
@@ -696,7 +696,7 @@ Or directly with SQL if you need to::
696696
ORDER BY p.price ASC
697697
';
698698
$stmt = $conn->prepare($sql);
699-
$stmt->execute(['price' => 1000]);
699+
$stmt->execute(['price' => $price]);
700700

701701
// returns an array of arrays (i.e. a raw data set)
702702
return $stmt->fetchAll();

frontend/encore/installation-no-flex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ And the new ``assets/css/app.css`` file:
9494

9595
.. code-block:: css
9696
97-
// assets/css/app.css
97+
/* assets/css/app.css */
9898
body {
9999
background-color: lightgray;
100100
}

frontend/encore/simple-example.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ can do most of the work for you:
9696
{{ encore_entry_link_tags('app') }}
9797
9898
<!-- Renders a link tag (if your module requires any CSS)
99-
<link rel="stylesheet" src="/build/app.css"> -->
99+
<link rel="stylesheet" href="/build/app.css"> -->
100100
{% endblock %}
101101
</head>
102102
<body>

service_container/autowiring.rst

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ If you're using the :ref:`default services.yaml configuration <service-container
6262
This means you can use them immediately without *any* configuration.
6363

6464
However, to understand autowiring better, the following examples explicitly configure
65-
both services. Also, to keep things simple, configure ``TwitterClient`` to be a
66-
:ref:`public <container-public>` service:
65+
both services:
6766

6867
.. configuration-block::
6968

@@ -80,8 +79,6 @@ both services. Also, to keep things simple, configure ``TwitterClient`` to be a
8079
App\Service\TwitterClient:
8180
# redundant thanks to _defaults, but value is overridable on each service
8281
autowire: true
83-
# not required, will help in our example
84-
public: true
8582
8683
App\Util\Rot13Transformer:
8784
autowire: true
@@ -98,7 +95,7 @@ both services. Also, to keep things simple, configure ``TwitterClient`` to be a
9895
<defaults autowire="true" autoconfigure="true" public="false" />
9996
<!-- ... -->
10097
101-
<service id="App\Service\TwitterClient" autowire="true" public="true" />
98+
<service id="App\Service\TwitterClient" autowire="true" />
10299
103100
<service id="App\Util\Rot13Transformer" autowire="true" />
104101
</services>
@@ -114,8 +111,7 @@ both services. Also, to keep things simple, configure ``TwitterClient`` to be a
114111
115112
// the autowire method is new in Symfony 3.3
116113
// in earlier versions, use register() and then call setAutowired(true)
117-
$container->autowire(TwitterClient::class)
118-
->setPublic(true);
114+
$container->autowire(TwitterClient::class);
119115
120116
$container->autowire(Rot13Transformer::class)
121117
->setPublic(false);
@@ -133,11 +129,10 @@ Now, you can use the ``TwitterClient`` service immediately in a controller::
133129
/**
134130
* @Route("/tweet", methods={"POST"})
135131
*/
136-
public function tweet()
132+
public function tweet(TwitterClient $twitterClient)
137133
{
138134
// fetch $user, $key, $status from the POST'ed data
139135

140-
$twitterClient = $this->container->get(TwitterClient::class);
141136
$twitterClient->tweet($user, $key, $status);
142137

143138
// ...

service_container/tags.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ container for any services with the ``app.mail_transport`` tag::
273273
$taggedServices = $container->findTaggedServiceIds('app.mail_transport');
274274

275275
foreach ($taggedServices as $id => $tags) {
276-
// add the transport service to the ChainTransport service
276+
// add the transport service to the TransportChain service
277277
$definition->addMethodCall('addTransport', array(new Reference($id)));
278278
}
279279
}

0 commit comments

Comments
 (0)