Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a522e04

Browse files
committed
Merge branch '3.4'
* 3.4: removed extra whitespace Removes \n or space when / are empty [HttpFoundation] add Early Hints in Reponse to fix test bumped Symfony version to 3.4.0 updated VERSION for 3.4.0-BETA2 updated CHANGELOG for 3.4.0-BETA2 Throwing exception if redis and predis unavailable
2 parents b833be7 + 5c46e39 commit a522e04

File tree

4 files changed

+60
-4
lines changed

4 files changed

+60
-4
lines changed

CHANGELOG-3.4.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,49 @@ in 3.4 minor versions.
77
To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
88
To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v3.4.0...v3.4.1
99

10+
* 3.4.0-BETA2 (2017-10-30)
11+
12+
* bug #24728 [Bridge\Twig] fix bootstrap checkbox_row to render properly & remove spaceless (arkste)
13+
* bug #24709 [HttpKernel] Move services reset to Kernel::handle()+boot() (nicolas-grekas)
14+
* bug #24703 [TwigBridge] Bootstrap 4 form theme fixes (vudaltsov)
15+
* bug #24744 debug:container --types: Fix bug with non-existent classes (weaverryan)
16+
* bug #24747 [VarDumper] HtmlDumper: fix collapsing nodes with depth < maxDepth (ogizanagi)
17+
* bug #24743 [FrameworkBundle] Do not activate the cache if Doctrine's cache is not present (sroze)
18+
* bug #24605 [FrameworkBundle] Do not load property_access.xml if the component isn't installed (ogizanagi)
19+
* bug #24710 [TwigBridge] Fix template paths in profiler (ro0NL)
20+
* bug #24706 [DependencyInjection] Add the possibility to disable assets via xml (renatomefi)
21+
* bug #24696 Ensure DeprecationErrorHandler::collectDeprecations() is triggered (alexpott)
22+
* bug #24711 [TwigBridge] Re-add Bootstrap 3 Checkbox Layout (arkste)
23+
* bug #24713 [FrameworkBundle] fix CachePoolPrunerPass to use correct command service id (kbond)
24+
* bug #24686 Fix $_ENV/$_SERVER precedence in test framework (fabpot)
25+
* bug #24691 [HttpFoundation] Fix caching of session-enabled pages (nicolas-grekas)
26+
* bug #24606 [HttpFoundation] Fix FileBag issue with associative arrays (enumag)
27+
* bug #24673 [DI] Throw when a service name or an alias contains dynamic values (prevent an infinite loop) (dunglas)
28+
* bug #24684 [Security] remove invalid deprecation notice on AbstractGuardAuthenticator::supports() (kbond)
29+
* bug #24681 Fix isolated error handling (alexpott)
30+
* bug #24575 Ensure that PHPUnit's error handler is still working in isolated tests (alexpott)
31+
* bug #24597 [PhpUnitBridge] fix deprecation triggering test detection (xabbuh)
32+
* feature #24671 [DI] Handle container.autowiring.strict_mode to opt-out from legacy autowiring (nicolas-grekas)
33+
* bug #24660 Escape trailing \ in QuestionHelper autocompletion (kamazee)
34+
* bug #24624 [Security] Fix missing BC layer for AbstractGuardAuthenticator::getCredentials() (chalasr)
35+
* bug #24598 Prefer line formatter on missing cli dumper (greg0ire)
36+
* bug #24635 [DI] Register default env var provided types (ro0NL)
37+
* bug #24620 [FrameworkBundle][Workflow] Fix deprectation when checking workflow.registry service in dump command (Jean-Beru)
38+
* bug #24644 [Security] Fixed auth provider authenticate() cannot return void (glye)
39+
* bug #24642 [Routing] Fix resource miss (dunglas)
40+
* bug #24608 Adding the Form default theme files to be warmed up in Twig's cache (weaverryan)
41+
* bug #24626 streamed response should return $this (DQNEO)
42+
* bug #24630 [WebServerBundle] Prevent commands from being registered by convention (chalasr)
43+
* bug #24589 Username and password in basic auth are allowed to contain '.' (Richard Quadling)
44+
* bug #24566 Fixed unsetting from loosely equal keys OrderedHashMap (maryo)
45+
* bug #24570 [Debug] Fix same vendor detection in class loader (Jean-Beru)
46+
* bug #24573 Fixed pathinfo calculation for requests starting with a question mark. (syzygymsu)
47+
* bug #24565 [Serializer] YamlEncoder: throw if the Yaml component isn't installed (dunglas)
48+
* bug #24563 [Serializer] ObjectNormalizer: throw if PropertyAccess isn't installed (dunglas)
49+
* bug #24571 [PropertyInfo] Add support for the iterable type (dunglas)
50+
* bug #24579 pdo session fix (mxp100)
51+
* bug #24536 [Security] Reject remember-me token if UserCheckerInterface::checkPostAuth() fails (kbond)
52+
1053
* 3.4.0-BETA1 (2017-10-18)
1154

1255
* feature #24583 Adding a new debug:autowiring command (weaverryan)

src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,20 @@ public function format(array $record)
101101
$levelColor = self::$levelColorMap[$record['level']];
102102

103103
if ($this->options['multiline']) {
104-
$context = $extra = "\n";
104+
$separator = "\n";
105105
} else {
106-
$context = $extra = ' ';
106+
$separator = ' ';
107+
}
108+
109+
$context = $this->dumpData($record['context']);
110+
if ($context) {
111+
$context = $separator.$context;
112+
}
113+
114+
$extra = $this->dumpData($record['extra']);
115+
if ($extra) {
116+
$extra = $separator.$extra;
107117
}
108-
$context .= $this->dumpData($record['context']);
109-
$extra .= $this->dumpData($record['extra']);
110118

111119
$formatted = strtr($this->options['format'], array(
112120
'%datetime%' => $record['datetime']->format($this->options['date_format']),

src/Symfony/Component/Cache/Traits/RedisTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Predis\Connection\Aggregate\PredisCluster;
1717
use Predis\Connection\Aggregate\RedisCluster;
1818
use Predis\Response\Status;
19+
use Symfony\Component\Cache\Exception\CacheException;
1920
use Symfony\Component\Cache\Exception\InvalidArgumentException;
2021

2122
/**
@@ -108,6 +109,9 @@ public static function createConnection($dsn, array $options = array())
108109
$params += $query;
109110
}
110111
$params += $options + self::$defaultConnectionOptions;
112+
if (null === $params['class'] && !extension_loaded('redis') && !class_exists(\Predis\Client::class)) {
113+
throw new CacheException(sprintf('Cannot find the "redis" extension, and "predis/predis" is not installed: %s', $dsn));
114+
}
111115
$class = null === $params['class'] ? (extension_loaded('redis') ? \Redis::class : \Predis\Client::class) : $params['class'];
112116

113117
if (is_a($class, \Redis::class, true)) {

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ class Response
126126
100 => 'Continue',
127127
101 => 'Switching Protocols',
128128
102 => 'Processing', // RFC2518
129+
103 => 'Early Hints',
129130
200 => 'OK',
130131
201 => 'Created',
131132
202 => 'Accepted',

0 commit comments

Comments
 (0)