Skip to content

Commit 48badfd

Browse files
committed
remove blank line after filepath in php code examples
1 parent e523833 commit 48badfd

File tree

15 files changed

+0
-20
lines changed

15 files changed

+0
-20
lines changed

bundles/configuration.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ force validation (e.g. if an additional option was passed, an exception will be
223223
thrown)::
224224

225225
// src/Acme/SocialBundle/DependencyInjection/AcmeSocialExtension.php
226-
227226
public function load(array $configs, ContainerBuilder $container)
228227
{
229228
$configuration = new Configuration();

components/console/changing_default_command.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ name to the ``setDefaultCommand()`` method::
3131
Executing the application and changing the default command::
3232

3333
// application.php
34-
3534
use Acme\Console\Command\HelloWorldCommand;
3635
use Symfony\Component\Console\Application;
3736

components/yaml.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,6 @@ First, install the Console component:
415415
Create a console application with ``lint:yaml`` as its only command::
416416

417417
// lint.php
418-
419418
use Symfony\Component\Console\Application;
420419
use Symfony\Component\Yaml\Command\LintCommand;
421420

configuration/micro_kernel_trait.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ putting *everything* in ``index.php``, create a new ``app/AppKernel.php`` to
133133
hold the kernel. Now it looks like this::
134134

135135
// app/AppKernel.php
136-
137136
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
138137
use Symfony\Component\Config\Loader\LoaderInterface;
139138
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -298,7 +297,6 @@ Finally, you need a front controller to boot and run the application. Create a
298297
``web/index.php``::
299298

300299
// web/index.php
301-
302300
use Symfony\Component\HttpFoundation\Request;
303301

304302
require __DIR__.'/../app/AppKernel.php';

doctrine/pdo_session_storage.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ a second array argument to ``PdoSessionHandler``:
146146
.. code-block:: php
147147
148148
// app/config/config.php
149-
150149
use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler;
151150
// ...
152151

doctrine/resolve_target_entity.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ brevity) to explain how to set up and use the ``ResolveTargetEntityListener``.
4040
A Customer entity::
4141

4242
// src/AppBundle/Entity/Customer.php
43-
4443
namespace AppBundle\Entity;
4544

4645
use Doctrine\ORM\Mapping as ORM;
@@ -60,7 +59,6 @@ A Customer entity::
6059
An Invoice entity::
6160

6261
// src/Acme/InvoiceBundle/Entity/Invoice.php
63-
6462
namespace Acme\InvoiceBundle\Entity;
6563

6664
use Doctrine\ORM\Mapping AS ORM;
@@ -84,7 +82,6 @@ An Invoice entity::
8482
An InvoiceSubjectInterface::
8583

8684
// src/Acme/InvoiceBundle/Model/InvoiceSubjectInterface.php
87-
8885
namespace Acme\InvoiceBundle\Model;
8986

9087
/**

form/dynamic_form_modification.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ Now that you have all the basics in place you can use the features of the
251251
security helper to fill in the listener logic::
252252

253253
// src/AppBundle/Form/Type/FriendMessageFormType.php
254-
255254
use AppBundle\Entity\User;
256255
use Doctrine\ORM\EntityRepository;
257256
use Symfony\Bridge\Doctrine\Form\Type\EntityType;

form/form_collections.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,6 @@ the relationship between the removed ``Tag`` and ``Task`` object.
649649
is handling the "update" of your Task::
650650

651651
// src/AppBundle/Controller/TaskController.php
652-
653652
use AppBundle\Entity\Task;
654653
use Doctrine\Common\Collections\ArrayCollection;
655654

form/form_dependencies.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ Suppose you need to access the :ref:`EntityManager <doctrine-entity-manager>` ob
7777
so that you can make a query. First, add this as an argument to your form class::
7878

7979
// src/AppBundle/Form/TaskType.php
80-
8180
use Doctrine\ORM\EntityManagerInterface;
8281
// ...
8382

http_cache/cache_invalidation.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ Here is how you can configure the Symfony reverse proxy to support the
5151
``PURGE`` HTTP method::
5252

5353
// app/AppCache.php
54-
5554
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
5655
use Symfony\Component\HttpFoundation\Request;
5756
use Symfony\Component\HttpFoundation\Response;

security/entity_provider.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ This extends :class:`Symfony\\Component\\Security\\Core\\User\\UserInterface`,
345345
so you only need the new interface::
346346

347347
// src/AppBundle/Entity/User.php
348-
349348
use Symfony\Component\Security\Core\User\AdvancedUserInterface;
350349
// ...
351350

service_container/factories.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ configure the service container to use the
7272
.. code-block:: php
7373
7474
// app/config/services.php
75-
7675
use AppBundle\Email\NewsletterManager;
7776
use AppBundle\Email\NewsletterManagerStaticFactory;
7877
// ...
@@ -136,7 +135,6 @@ Configuration of the service container then looks like this:
136135
.. code-block:: php
137136
138137
// app/config/services.php
139-
140138
use AppBundle\Email\NewsletterManager;
141139
use AppBundle\Email\NewsletterManagerFactory;
142140
use Symfony\Component\DependencyInjection\Reference;
@@ -216,7 +214,6 @@ example takes the ``templating`` service as an argument:
216214
.. code-block:: php
217215
218216
// app/config/services.php
219-
220217
use AppBundle\Email\NewsletterManager;
221218
use AppBundle\Email\NewsletterManagerFactory;
222219
use Symfony\Component\DependencyInjection\Reference;

templating/PHP.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ Here, the ``AppBundle:Hello:fancy`` string refers to the ``fancy`` action of the
279279
``Hello`` controller::
280280

281281
// src/AppBundle/Controller/HelloController.php
282-
283282
class HelloController extends Controller
284283
{
285284
public function fancyAction($name, $color)

workflow/state-machines.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ Below is the configuration for the pull request state machine.
142142
.. code-block:: php
143143
144144
// app/config/config.php
145-
146145
$container->loadFromExtension('framework', [
147146
// ...
148147
'workflows' => [

workflow/usage.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ like this:
104104
.. code-block:: php
105105
106106
// app/config/config.php
107-
108107
$container->loadFromExtension('framework', [
109108
// ...
110109
'workflows' => [

0 commit comments

Comments
 (0)