Skip to content

Commit 353b7db

Browse files
authored
fix new lint errors
1 parent e699bf5 commit 353b7db

File tree

7 files changed

+0
-31
lines changed

7 files changed

+0
-31
lines changed

components/runtime.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ The Runtime component abstracts most bootstrapping logic as so-called
3030
For instance, the Runtime component allows Symfony's ``public/index.php``
3131
to look like this::
3232

33-
<?php
3433
// public/index.php
3534
use App\Kernel;
3635

@@ -120,7 +119,6 @@ Resolvable Arguments
120119

121120
The closure returned from the front-controller may have zero or more arguments::
122121

123-
<?php
124122
// public/index.php
125123
use Symfony\Component\Console\Input\InputInterface;
126124
use Symfony\Component\Console\Output\OutputInterface;
@@ -167,7 +165,6 @@ Resolvable Applications
167165
The application returned by the closure below is a Symfony Kernel. However,
168166
a number of different applications are supported::
169167

170-
<?php
171168
// public/index.php
172169
use App\Kernel;
173170

@@ -187,7 +184,6 @@ The ``SymfonyRuntime`` can handle these applications:
187184
The Response will be printed by
188185
:class:`Symfony\\Component\\Runtime\\Runner\\Symfony\\ResponseRunner`::
189186

190-
<?php
191187
// public/index.php
192188
use Symfony\Component\HttpFoundation\Response;
193189

@@ -201,8 +197,6 @@ The ``SymfonyRuntime`` can handle these applications:
201197
To write single command applications. This will use the
202198
:class:`Symfony\\Component\\Runtime\\Runner\\Symfony\\ConsoleApplicationRunner`::
203199

204-
<?php
205-
206200
use Symfony\Component\Console\Command\Command;
207201
use Symfony\Component\Console\Input\InputInterface;
208202
use Symfony\Component\Console\Output\OutputInterface;
@@ -221,8 +215,6 @@ The ``SymfonyRuntime`` can handle these applications:
221215
Useful with console applications with more than one command. This will use the
222216
:class:`Symfony\\Component\\Runtime\\Runner\\Symfony\\ConsoleApplicationRunner`::
223217

224-
<?php
225-
226218
use Symfony\Component\Console\Application;
227219
use Symfony\Component\Console\Command\Command;
228220
use Symfony\Component\Console\Input\InputInterface;
@@ -250,7 +242,6 @@ applications:
250242
The ``RunnerInterface`` is a way to use a custom application with the
251243
generic Runtime::
252244

253-
<?php
254245
// public/index.php
255246
use Symfony\Component\Runtime\RunnerInterface;
256247

@@ -271,7 +262,6 @@ applications:
271262
Your "application" can also be a ``callable``. The first callable will return
272263
the "application" and the second callable is the "application" itself::
273264

274-
<?php
275265
// public/index.php
276266

277267
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
@@ -290,8 +280,6 @@ applications:
290280
If the callable doesn't return anything, the ``SymfonyRuntime`` will assume
291281
everything is fine::
292282

293-
<?php
294-
295283
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
296284

297285
return function () {
@@ -304,8 +292,6 @@ Using Options
304292
Some behavior of the Runtimes can be modified through runtime options. They
305293
can be set using the ``APP_RUNTIME_OPTIONS`` environment variable::
306294

307-
<?php
308-
309295
$_SERVER['APP_RUNTIME_OPTIONS'] = [
310296
'project_dir' => '/var/task',
311297
];
@@ -496,8 +482,6 @@ always using this ``ReactPHPRunner``::
496482

497483
The end user will now be able to create front controller like::
498484

499-
<?php
500-
501485
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
502486

503487
return function (array $context) {

components/uid.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ configure the behavior of the factory using configuration files::
128128
.. code-block:: php
129129
130130
// config/packages/uid.php
131-
<?php
132131
133132
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
134133
@@ -152,8 +151,6 @@ configure the behavior of the factory using configuration files::
152151
Then, you can inject the factory in your services and use it to generate UUIDs based
153152
on the configuration you defined::
154153

155-
<?php
156-
157154
namespace App\Service;
158155

159156
use Symfony\Component\Uid\Factory\UuidFactory;
@@ -367,8 +364,6 @@ following methods to create a ``Ulid`` object from it::
367364

368365
Like UUIDs, ULIDs have their own factory, ``UlidFactory``, that can be used to generate them::
369366

370-
<?php
371-
372367
namespace App\Service;
373368

374369
use Symfony\Component\Uid\Factory\UlidFactory;

components/var_exporter.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ following class hierarchy::
7575
When exporting the ``ConcreteClass`` data with VarExporter, the generated PHP
7676
file looks like this::
7777

78-
<?php
7978
return \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
8079
$o = [
8180
clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['Symfony\\Component\\VarExporter\\Tests\\ConcreteClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('Symfony\\Component\\VarExporter\\Tests\\ConcreteClass')),

page_creation.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Suppose you want to create a page - ``/lucky/number`` - that generates a lucky (
4444
random) number and prints it. To do that, create a "Controller" class and a
4545
"controller" method inside of it::
4646

47-
<?php
4847
// src/Controller/LuckyController.php
4948
namespace App\Controller;
5049

quick_tour/flex_recipes.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ Rich API Support
154154

155155
Are you building an API? You can already return JSON from any controller::
156156

157-
<?php
158157
// src/Controller/DefaultController.php
159158
namespace App\Controller;
160159

@@ -191,7 +190,6 @@ But like usual, we can immediately start using the new library. Want to create a
191190
rich API for a ``product`` table? Create a ``Product`` entity and give it the
192191
``@ApiResource()`` annotation::
193192

194-
<?php
195193
// src/Entity/Product.php
196194
namespace App\Entity;
197195

quick_tour/the_architecture.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Want a logging system? No problem:
2121
This installs and configures (via a recipe) the powerful `Monolog`_ library. To
2222
use the logger in a controller, add a new argument type-hinted with ``LoggerInterface``::
2323

24-
<?php
2524
// src/Controller/DefaultController.php
2625
namespace App\Controller;
2726

@@ -87,7 +86,6 @@ To keep your code organized, you can even create your own services! Suppose you
8786
want to generate a random greeting (e.g. "Hello", "Yo", etc). Instead of putting
8887
this code directly in your controller, create a new class::
8988

90-
<?php
9189
// src/GreetingGenerator.php
9290
namespace App;
9391

@@ -104,7 +102,6 @@ this code directly in your controller, create a new class::
104102

105103
Great! You can use this immediately in your controller::
106104

107-
<?php
108105
// src/Controller/DefaultController.php
109106
namespace App\Controller;
110107

@@ -168,7 +165,6 @@ by creating an event subscriber or a security voter for complex authorization
168165
rules. Let's add a new filter to Twig called ``greet``. How? Create a class
169166
that extends ``AbstractExtension``::
170167

171-
<?php
172168
// src/Twig/GreetExtension.php
173169
namespace App\Twig;
174170

quick_tour/the_big_picture.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ doesn't exist yet, so let's create it!
8080
In ``src/Controller``, create a new ``DefaultController`` class and an ``index``
8181
method inside::
8282

83-
<?php
8483
// src/Controller/DefaultController.php
8584
namespace App\Controller;
8685

@@ -176,7 +175,6 @@ This works just like before! But by using annotations, the route and controller
176175
live right next to each other. Need another page? Add another route and method
177176
in ``DefaultController``::
178177

179-
<?php
180178
// src/Controller/DefaultController.php
181179
namespace App\Controller;
182180

0 commit comments

Comments
 (0)