Skip to content

Commit 1e65fc3

Browse files
MrYamousOskarStark
authored andcommitted
Upgrade doctor rst 1.41.3
1 parent b7392eb commit 1e65fc3

File tree

8 files changed

+3
-36
lines changed

8 files changed

+3
-36
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
key: ${{ runner.os }}-doctor-rst-${{ steps.extract_base_branch.outputs.branch }}
7474

7575
- name: "Run DOCtor-RST"
76-
uses: docker://oskarstark/doctor-rst:1.41.0
76+
uses: docker://oskarstark/doctor-rst:1.41.3
7777
with:
7878
args: --short --error-format=github --cache-file=/github/workspace/.cache/doctor-rst.cache
7979

components/runtime.rst

-17
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,9 +262,7 @@ 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
276-
277266
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
278267

279268
return function () {
@@ -290,8 +279,6 @@ applications:
290279
If the callable doesn't return anything, the ``SymfonyRuntime`` will assume
291280
everything is fine::
292281

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

297284
return function () {
@@ -304,8 +291,6 @@ Using Options
304291
Some behavior of the Runtimes can be modified through runtime options. They
305292
can be set using the ``APP_RUNTIME_OPTIONS`` environment variable::
306293

307-
<?php
308-
309294
$_SERVER['APP_RUNTIME_OPTIONS'] = [
310295
'project_dir' => '/var/task',
311296
];
@@ -496,8 +481,6 @@ always using this ``ReactPHPRunner``::
496481

497482
The end user will now be able to create front controller like::
498483

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

503486
return function (array $context) {

components/uid.rst

+2-8
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,15 @@ configure the behavior of the factory using configuration files::
128128
.. code-block:: php
129129
130130
// config/packages/uid.php
131-
<?php
132-
133131
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
134132
135133
return static function (ContainerConfigurator $containerConfigurator): void {
136-
$services = $configurator->services()
134+
$services = $containerConfigurator->services()
137135
->defaults()
138136
->autowire()
139137
->autoconfigure();
140138
141-
$configurator->extension('framework', [
139+
$containerConfigurator->extension('framework', [
142140
'uid' => [
143141
'default_uuid_version' => 6,
144142
'name_based_uuid_version' => 5,
@@ -152,8 +150,6 @@ configure the behavior of the factory using configuration files::
152150
Then, you can inject the factory in your services and use it to generate UUIDs based
153151
on the configuration you defined::
154152

155-
<?php
156-
157153
namespace App\Service;
158154

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

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

370-
<?php
371-
372366
namespace App\Service;
373367

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

components/var_exporter.rst

-1
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

-1
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

-2
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

-4
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

-2
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)