Skip to content

Commit 18a2ad4

Browse files
committed
minor #7737 lots of minor tweaks and fixes (atailouloute, Ahmed TAILOULOUTE)
This PR was squashed before being merged into the 2.7 branch (closes #7737). Discussion ---------- lots of minor tweaks and fixes This PR contains all the commits from the following pull requests: * #7641 * #7652 * #7653 * #7666 * #7667 * #7669 * #7673 * #7674 * #7675 * #7677 * #7680 * #7681 * #7710 * #7711 * #7712 * #7713 * #7714 * #7716 * #7717 * #7718 * #7721 * #7722 * #7736 Commits ------- 3d61281 lots of minor tweaks and fixes
2 parents c52bcd6 + 3d61281 commit 18a2ad4

32 files changed

+58
-45
lines changed

assetic/asset_management.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ configuration under the ``assetic`` section. Read more in the
328328
),
329329
),
330330
),
331-
);
331+
));
332332
333333
After you have defined the named assets, you can reference them in your templates
334334
with the ``@named_asset`` notation:

assetic/jpeg_optimize.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ following configuration:
232232
),
233233
'twig' => array(
234234
'functions' => array('jpegoptim'),
235-
),
236235
),
237236
));
238237
@@ -294,7 +293,7 @@ file:
294293
'twig' => array(
295294
'functions' => array(
296295
'jpegoptim' => array(
297-
output => 'images/*.jpg'
296+
'output' => 'images/*.jpg'
298297
),
299298
),
300299
),

assetic/uglifyjs.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ can configure its location using the ``node`` key:
168168
169169
// app/config/config.php
170170
$container->loadFromExtension('assetic', array(
171-
'node' => '/usr/bin/nodejs',
171+
'node' => '/usr/bin/nodejs',
172172
'uglifyjs2' => array(
173-
// the path to the uglifyjs executable
174-
'bin' => '/usr/local/bin/uglifyjs',
175-
),
173+
// the path to the uglifyjs executable
174+
'bin' => '/usr/local/bin/uglifyjs',
175+
),
176176
));
177177
178178
Minify your Assets

components/routing.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ to find a route that fits the given request you can also build a URL from
206206
a certain route::
207207

208208
use Symfony\Component\Routing\Generator\UrlGenerator;
209+
use Symfony\Component\Routing\RequestContext;
210+
use Symfony\Component\Routing\Route;
211+
use Symfony\Component\Routing\RouteCollection;
209212

210213
$routes = new RouteCollection();
211214
$routes->add('show_post', new Route('/show/{slug}'));
@@ -321,7 +324,7 @@ a path to the main route definition and some other settings::
321324
$resource,
322325
array $options = array(),
323326
RequestContext $context = null,
324-
array $defaults = array()
327+
LoggerInterface $logger = null
325328
);
326329

327330
With the ``cache_dir`` option you can enable route caching (if you provide a

components/security/authentication.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ The default authentication manager is an instance of
7676
:class:`Symfony\\Component\\Security\\Core\\Authentication\\AuthenticationProviderManager`::
7777

7878
use Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager;
79+
use Symfony\Component\Security\Core\Exception\AuthenticationException;
7980

8081
// instances of Symfony\Component\Security\Core\Authentication\Provider\AuthenticationProviderInterface
8182
$providers = array(...);
@@ -234,6 +235,7 @@ own, it just needs to follow these rules:
234235
}
235236

236237
// ...
238+
}
237239
}
238240

239241
Using Password Encoders

configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ configure DoctrineBundle and other parts of Symfony:
316316
.. code-block:: php
317317
318318
// app/config/config.php
319-
$configuration->loadFromExtension('doctrine', array(
319+
$container->loadFromExtension('doctrine', array(
320320
'dbal' => array(
321321
'driver' => 'pdo_mysql',
322322
// ...

configuration/environments.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ The best way to accomplish this is via a new environment called, for example,
294294
.. code-block:: php
295295
296296
// app/config/config_benchmark.php
297-
$loader->import('config_prod.php')
297+
$loader->import('config_prod.php');
298298
299299
$container->loadFromExtension('framework', array(
300300
'profiler' => array('only_exceptions' => false),

controller/service.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ controller:
335335
$templating = $this->templating;
336336
$callback = function () use ($templating, $view, $parameters) {
337337
$templating->stream($view, $parameters);
338-
}
338+
};
339339
340340
return new StreamedResponse($callback);
341341

doctrine.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ information. By convention, this information is usually configured in an
9595
.. code-block:: php
9696
9797
// app/config/config.php
98-
$configuration->loadFromExtension('doctrine', array(
98+
$container->loadFromExtension('doctrine', array(
9999
'dbal' => array(
100100
'driver' => 'pdo_mysql',
101101
'host' => '%database_host%',

form/action_method.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ to the ``form()`` or the ``form_start()`` helper functions:
4747

4848
.. code-block:: html+php
4949

50-
<!-- app/Resources/views/default/newAction.html.php -->
50+
<!-- app/Resources/views/default/new.html.php -->
5151
<?php echo $view['form']->start($form, array(
5252
'action' => $view['router']->generate('target_route'),
5353
'method' => 'GET',

0 commit comments

Comments
 (0)