Skip to content

Commit a1faaa1

Browse files
committed
Merge branch '3.3' into 3.4
* 3.3: fixed CS [2.8] Modify 2.8 upgrade doc - key option is deprecated. [DebugBundle] Reword an outdated comment about var dumper wiring [DI] Fix some docblocks [DI] Fix some docblocks Fixed the exception page design in responsive mode [Console] Log exit codes as debug messages instead of errors Fixed UPGRADE-4.0 about Container::set Ignore memcached missing key error on dession destroy bumped Symfony version to 3.2.14 updated VERSION for 3.2.13 updated CHANGELOG for 3.2.13
2 parents 1982fff + a670b2b commit a1faaa1

File tree

12 files changed

+75
-25
lines changed

12 files changed

+75
-25
lines changed

CHANGELOG-3.2.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@ in 3.2 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.2.0...v3.2.1
99

10+
* 3.2.13 (2017-08-01)
11+
12+
* bug #22244 [Console] Fix passing options with defaultCommand (Jakub Sacha)
13+
* bug #23684 [Debug] Missing escape in debug output (c960657)
14+
* bug #23654 [DI] Fix using private services in expressions (nicolas-grekas)
15+
* bug #23662 [VarDumper] Adapt to php 7.2 changes (nicolas-grekas)
16+
* bug #23649 [Form][TwigBridge] Don't render _method in form_rest() for a child form (fmarchalemisys)
17+
* bug #23023 [DoctrineBridge][PropertyInfo] Added support for Doctrine Embeddables (vudaltsov)
18+
* bug #23619 [Validator] Fix IbanValidator for ukrainian IBANs (paroe)
19+
* bug #23586 Fix case sensitive sameSite cookie (mikefrancis)
20+
* bug #23238 [Security] ensure the 'route' index is set before attempting to use it (gsdevme)
21+
* bug #23330 [WebProfilerBundle] Fix full sized dump hovering in toolbar (ogizanagi)
22+
* bug #23580 Fix login redirect when referer contains a query string (fabpot)
23+
* bug #23558 [FrameworkBundle] fix ValidatorCacheWarmer: use serializing ArrayAdapter (dmaicher)
24+
* bug #23574 [VarDumper] Move locale sniffing to dump() time (nicolas-grekas)
25+
1026
* 3.2.12 (2017-07-17)
1127

1228
* bug #23549 [PropertyInfo] conflict for phpdocumentor/reflection-docblock 3.2 (xabbuh)

UPGRADE-4.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ DependencyInjection
164164

165165
* Using unsupported options to configure service aliases raises an exception.
166166

167-
* Setting or unsetting a private service with the `Container::set()` method is
168-
no longer supported. Only public services can be set or unset.
167+
* Setting or unsetting a service with the `Container::set()` method is
168+
no longer supported. Only synthetic services can be set or unset.
169169

170170
* Checking the existence of a private service with the `Container::has()`
171171
method is no longer supported and will return `false`.

src/Symfony/Bundle/DebugBundle/DebugBundle.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ public function boot()
2727
$container = $this->container;
2828

2929
// This code is here to lazy load the dump stack. This default
30-
// configuration for CLI mode is overridden in HTTP mode on
31-
// 'kernel.request' event
30+
// configuration is overridden in CLI mode on 'console.command' event.
31+
// The dump data collector is used by default, so dump output is sent to
32+
// the WDT. In a CLI context, if dump is used too soon, the data collector
33+
// will buffer it, and release it at the end of the script.
3234
VarDumper::setHandler(function ($var) use ($container) {
3335
$dumper = $container->get('data_collector.dump');
3436
$cloner = $container->get('var_dumper.cloner');

src/Symfony/Bundle/TwigBundle/Resources/views/exception.css.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ header .container { display: flex; justify-content: space-between; }
8080
.exception-hierarchy .icon svg { height: 13px; width: 13px; vertical-align: -2px; }
8181

8282
.exception-without-message .exception-message-wrapper { display: none; }
83-
.exception-message-wrapper .container { display: flex; align-items: flex-start; min-height: 70px; padding: 10px 0 8px; }
83+
.exception-message-wrapper .container { display: flex; align-items: flex-start; min-height: 70px; padding: 10px 15px 8px; }
8484
.exception-message { flex-grow: 1; }
8585
.exception-message, .exception-message a { color: #FFF; font-size: 21px; font-weight: 400; margin: 0; }
8686
.exception-message.long { font-size: 18px; }
@@ -107,11 +107,11 @@ header .container { display: flex; justify-content: space-between; }
107107
.trace-line .icon svg { height: 16px; width: 16px; }
108108
.trace-line-header { padding-left: 36px; }
109109

110-
.trace-file-path, .trace-file-path a { color: #999; color: #795da3; color: #B0413E; color: #222; font-size: 13px; }
110+
.trace-file-path, .trace-file-path a { color: #222; font-size: 13px; }
111111
.trace-class { color: #B0413E; }
112112
.trace-type { padding: 0 2px; }
113-
.trace-method { color: #B0413E; color: #222; font-weight: bold; color: #B0413E; }
114-
.trace-arguments { color: #222; color: #999; font-weight: normal; color: #795da3; color: #777; padding-left: 2px; }
113+
.trace-method { color: #B0413E; font-weight: bold; }
114+
.trace-arguments { color: #777; font-weight: normal; padding-left: 2px; }
115115

116116
.trace-code { background: #FFF; font-size: 12px; margin: 10px 10px 2px 10px; padding: 10px; overflow-x: auto; white-space: nowrap; }
117117
.trace-code ol { margin: 0; float: left; }

src/Symfony/Component/Console/EventListener/ErrorListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public function onConsoleTerminate(ConsoleTerminateEvent $event)
5959
}
6060

6161
if (!$inputString = $this->getInputString($event)) {
62-
return $this->logger->error('The console exited with code "{code}"', array('code' => $exitCode));
62+
return $this->logger->debug('The console exited with code "{code}"', array('code' => $exitCode));
6363
}
6464

65-
$this->logger->error('Command "{command}" exited with code "{code}"', array('command' => $inputString, 'code' => $exitCode));
65+
$this->logger->debug('Command "{command}" exited with code "{code}"', array('command' => $inputString, 'code' => $exitCode));
6666
}
6767

6868
public static function getSubscribedEvents()

src/Symfony/Component/Console/Tests/EventListener/ErrorListenerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testOnConsoleTerminateForNonZeroExitCodeWritesToLog()
6161
$logger = $this->getLogger();
6262
$logger
6363
->expects($this->once())
64-
->method('error')
64+
->method('debug')
6565
->with('Command "{command}" exited with code "{code}"', array('command' => 'test:run', 'code' => 255))
6666
;
6767

@@ -74,7 +74,7 @@ public function testOnConsoleTerminateForZeroExitCodeDoesNotWriteToLog()
7474
$logger = $this->getLogger();
7575
$logger
7676
->expects($this->never())
77-
->method('error')
77+
->method('debug')
7878
;
7979

8080
$listener = new ErrorListener($logger);
@@ -97,7 +97,7 @@ public function testAllKindsOfInputCanBeLogged()
9797
$logger = $this->getLogger();
9898
$logger
9999
->expects($this->exactly(3))
100-
->method('error')
100+
->method('debug')
101101
->with('Command "{command}" exited with code "{code}"', array('command' => 'test:run --foo=bar', 'code' => 255))
102102
;
103103

@@ -112,7 +112,7 @@ public function testCommandNameIsDisplayedForNonStringableInput()
112112
$logger = $this->getLogger();
113113
$logger
114114
->expects($this->once())
115-
->method('error')
115+
->method('debug')
116116
->with('Command "{command}" exited with code "{code}"', array('command' => 'test:run', 'code' => 255))
117117
;
118118

src/Symfony/Component/Debug/ExceptionHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,11 @@ public function getStylesheet(FlattenException $exception)
320320
321321
.trace-message { font-size: 14px; font-weight: normal; margin: .5em 0 0; }
322322
323-
.trace-file-path, .trace-file-path a { margin-top: 3px; color: #999; color: #795da3; color: #B0413E; color: #222; font-size: 13px; }
323+
.trace-file-path, .trace-file-path a { color: #222; margin-top: 3px; font-size: 13px; }
324324
.trace-class { color: #B0413E; }
325325
.trace-type { padding: 0 2px; }
326-
.trace-method { color: #B0413E; color: #222; font-weight: bold; color: #B0413E; }
327-
.trace-arguments { color: #222; color: #999; font-weight: normal; color: #795da3; color: #777; padding-left: 2px; }
326+
.trace-method { color: #B0413E; font-weight: bold; }
327+
.trace-arguments { color: #777; font-weight: normal; padding-left: 2px; }
328328
329329
@media (min-width: 575px) {
330330
.hidden-xs-down { display: initial; }

src/Symfony/Component/DependencyInjection/ChildDefinition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct($parent)
3333
}
3434

3535
/**
36-
* Returns the Definition being decorated.
36+
* Returns the Definition to inherit from.
3737
*
3838
* @return string
3939
*/
@@ -43,7 +43,7 @@ public function getParent()
4343
}
4444

4545
/**
46-
* Sets the Definition being decorated.
46+
* Sets the Definition to inherit from.
4747
*
4848
* @param string $parent
4949
*

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,8 +868,8 @@ public function getAlias($id)
868868
* This methods allows for simple registration of service definition
869869
* with a fluid interface.
870870
*
871-
* @param string $id The service identifier
872-
* @param string $class The service class
871+
* @param string $id The service identifier
872+
* @param string $class|null The service class
873873
*
874874
* @return Definition A Definition instance
875875
*/

src/Symfony/Component/DependencyInjection/Definition.php

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,18 +190,38 @@ public function setArguments(array $arguments)
190190
return $this;
191191
}
192192

193+
/**
194+
* Sets the properties to define when creating the service.
195+
*
196+
* @param array $properties
197+
*
198+
* @return $this
199+
*/
193200
public function setProperties(array $properties)
194201
{
195202
$this->properties = $properties;
196203

197204
return $this;
198205
}
199206

207+
/**
208+
* Gets the properties to define when creating the service.
209+
*
210+
* @return array
211+
*/
200212
public function getProperties()
201213
{
202214
return $this->properties;
203215
}
204216

217+
/**
218+
* Sets a specific property.
219+
*
220+
* @param string $name
221+
* @param mixed $value
222+
*
223+
* @return $this
224+
*/
205225
public function setProperty($name, $value)
206226
{
207227
$this->properties[$name] = $value;
@@ -224,7 +244,7 @@ public function addArgument($argument)
224244
}
225245

226246
/**
227-
* Sets a specific argument.
247+
* Replaces a specific argument.
228248
*
229249
* @param int|string $index
230250
* @param mixed $argument
@@ -252,6 +272,14 @@ public function replaceArgument($index, $argument)
252272
return $this;
253273
}
254274

275+
/**
276+
* Sets a specific argument.
277+
*
278+
* @param int|string $key
279+
* @param mixed $value
280+
*
281+
* @return $this
282+
*/
255283
public function setArgument($key, $value)
256284
{
257285
$this->arguments[$key] = $value;
@@ -780,7 +808,7 @@ public function isAutowired()
780808
}
781809

782810
/**
783-
* Sets autowired.
811+
* Enables/disables autowiring.
784812
*
785813
* @param bool $autowired
786814
*

0 commit comments

Comments
 (0)