Skip to content

Commit 4c11224

Browse files
committed
Merge branch '4.0'
* 4.0: [#9155] revert on the 4.0 branch minor #9152 Fix action name in controller (orions) Fix passing arguments to "Client" constructor Fixed the config file name for the other config formats too Revert back to SF 3 directory structure typo! Fix wrong filename Reword Update doctrine.rst
2 parents b091697 + 1045b7b commit 4c11224

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

components/browser_kit.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ into the client constructor::
191191
use Acme\Client;
192192

193193
// create cookies and add to cookie jar
194-
$cookieJar = new Cookie('flavor', 'chocolate', strtotime('+1 day'));
194+
$cookie = new Cookie('flavor', 'chocolate', strtotime('+1 day'));
195+
$cookieJar = new CookieJar();
196+
$cookieJar->set($cookie);
195197

196198
// create a client and set the cookies
197199
$client = new Client(array(), null, $cookieJar);

doctrine.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ The database connection information is stored as an environment variable called
4040
4141
# to use sqlite:
4242
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/app.db"
43+
44+
.. caution::
45+
46+
If the username, password or database name contain any character considered
47+
special in a URI (such as ``!``, ``@``, ``$``, ``#``), you must encode them.
48+
See `RFC 3986`_ for the full list of reserved characters or use the
49+
:phpfunction:`urlencode` function to encode them.
4350

4451
Now that your connection parameters are setup, Doctrine can create the ``db_name``
4552
database for you:
@@ -738,6 +745,7 @@ Learn more
738745
* `DoctrineFixturesBundle`_
739746

740747
.. _`Doctrine`: http://www.doctrine-project.org/
748+
.. _`RFC 3986`: https://www.ietf.org/rfc/rfc3986.txt
741749
.. _`MongoDB`: https://www.mongodb.org/
742750
.. _`Doctrine's Mapping Types documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/basic-mapping.html
743751
.. _`Query Builder`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/query-builder.html

doctrine/multiple_entity_managers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ the default entity manager (i.e. ``default``) is returned::
238238
public function indexAction(EntityManagerInterface $em)
239239
{
240240
// These methods also return the default entity manager, but it's preferred
241-
// to get it by inyecting EntityManagerInterface in the action method
241+
// to get it by injecting EntityManagerInterface in the action method
242242
$em = $this->getDoctrine()->getManager();
243243
$em = $this->getDoctrine()->getManager('default');
244244
$em = $this->get('doctrine.orm.default_entity_manager');

doctrine/pdo_session_storage.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,23 @@ Next, tell Symfony to use your service as the session handler:
7070

7171
.. code-block:: yaml
7272
73-
# config/packages/doctrine.yaml
73+
# config/packages/framework.yaml
7474
framework:
7575
session:
7676
# ...
7777
handler_id: Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler
7878
7979
.. code-block:: xml
8080
81-
<!-- config/packages/doctrine.xml -->
81+
<!-- config/packages/framework.xml -->
8282
<framework:config>
8383
<!-- ... -->
8484
<framework:session handler-id="Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler" cookie-lifetime="3600" auto-start="true"/>
8585
</framework:config>
8686
8787
.. code-block:: php
8888
89-
// config/packages/doctrine.php
89+
// config/packages/framework.php
9090
use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler;
9191
9292
// ...

0 commit comments

Comments
 (0)