Skip to content

Commit 65fa8c2

Browse files
Merge branch '2.7' into 2.8
* 2.7: [DI] Fix some docblocks
2 parents 684975d + 5fad797 commit 65fa8c2

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,8 @@ public function getAlias($id)
729729
* This methods allows for simple registration of service definition
730730
* with a fluid interface.
731731
*
732-
* @param string $id The service identifier
733-
* @param string $class The service class
732+
* @param string $id The service identifier
733+
* @param string $class|null The service class
734734
*
735735
* @return Definition A Definition instance
736736
*/

src/Symfony/Component/DependencyInjection/Definition.php

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,18 +265,38 @@ public function setArguments(array $arguments)
265265
return $this;
266266
}
267267

268+
/**
269+
* Sets the properties to define when creating the service.
270+
*
271+
* @param array $properties
272+
*
273+
* @return $this
274+
*/
268275
public function setProperties(array $properties)
269276
{
270277
$this->properties = $properties;
271278

272279
return $this;
273280
}
274281

282+
/**
283+
* Gets the properties to define when creating the service.
284+
*
285+
* @return array
286+
*/
275287
public function getProperties()
276288
{
277289
return $this->properties;
278290
}
279291

292+
/**
293+
* Sets a specific property.
294+
*
295+
* @param string $name
296+
* @param mixed $value
297+
*
298+
* @return $this
299+
*/
280300
public function setProperty($name, $value)
281301
{
282302
$this->properties[$name] = $value;
@@ -299,7 +319,7 @@ public function addArgument($argument)
299319
}
300320

301321
/**
302-
* Sets a specific argument.
322+
* Replaces a specific argument.
303323
*
304324
* @param int $index
305325
* @param mixed $argument
@@ -854,7 +874,7 @@ public function isAutowired()
854874
}
855875

856876
/**
857-
* Sets autowired.
877+
* Enables/disables autowiring.
858878
*
859879
* @param bool $autowired
860880
*

0 commit comments

Comments
 (0)