From 46782d178bc6108a783d0f9cc0d7f80d678bce7c Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Sun, 14 Apr 2013 20:27:17 +0200 Subject: [PATCH] [Process] Add code blocks declaration --- components/process.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/process.rst b/components/process.rst index b109ea6d0d7..4133e6c0db2 100644 --- a/components/process.rst +++ b/components/process.rst @@ -21,6 +21,8 @@ Usage The :class:`Symfony\\Component\\Process\\Process` class allows you to execute a command in a sub-process:: +.. code-block:: php + use Symfony\Component\Process\Process; $process = new Process('ls -lsa'); @@ -50,6 +52,8 @@ server), you can give feedback to the end user in real-time by passing an anonymous function to the :method:`Symfony\\Component\\Process\\Process::run` method:: +.. code-block:: php + use Symfony\Component\Process\Process; $process = new Process('ls -lsa'); @@ -99,6 +103,8 @@ are done doing other stuff:: If you want to execute some PHP code in isolation, use the ``PhpProcess`` instead:: +.. code-block:: php + use Symfony\Component\Process\PhpProcess; $process = new PhpProcess(<<