8000 Merge branch '2.8' into 3.3 · symfony/symfony@ac3ee2c · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit ac3ee2c

Browse files
committed
Merge branch '2.8' into 3.3
* 2.8: fixed CS [2.8] Modify 2.8 upgrade doc - key option is deprecated. [DI] Fix some docblocks
2 parents fea72fb + 4879eb4 commit ac3ee2c

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

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: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,18 +188,38 @@ public function setArguments(array $arguments)
188188
return $this;
189189
}
190190

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

195202
return $this;
196203
}
197204

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

215+
/**
216+
* Sets a specific property.
217+
*
218+
* @param string $name
219+
* @param mixed $value
220+
*
221+
* @return $this
222+
*/
203223
public function setProperty($name, $value)
204224
{
205225
$this->properties[$name] = $value;
@@ -222,7 +242,7 @@ public function addArgument($argument)
222242
}
223243

224244
/**
225-
* Sets a specific argument.
245+
* Replaces a specific argument.
226246
*
227247
* @param int|string $index
228248
* @param mixed $argument

0 commit comments

Comments
 (0)
0