From c399dcfe58865b839309a710d39c36a4faf9cd32 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 17 Mar 2013 19:18:49 +0100 Subject: [PATCH] Add simpler section for 2.4 CLI integration --- docs/en/reference/configuration.rst | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/en/reference/configuration.rst b/docs/en/reference/configuration.rst index 4743971fe..eb4b0a497 100644 --- a/docs/en/reference/configuration.rst +++ b/docs/en/reference/configuration.rst @@ -107,6 +107,23 @@ You need to register your applications EntityManager to the console tool to make use of the tasks by creating a ``cli-config.php`` file with the following content: +On Doctrine 2.4 and above: + +.. code-block:: php + + new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($em->getConnection()), 'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em)