8000 minor #23833 [DI] Fix some docblocks (nicolas-grekas) · symfony/symfony@0bcc6bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 0bcc6bb

Browse files
author
Robin Chalas
committed
minor #23833 [DI] Fix some docblocks (nicolas-grekas)
This PR was merged into the 3.3 branch. Discussion ---------- [DI] Fix some docblocks | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- a22e839 [DI] Fix some docblocks
2 parents 7010f99 + a22e839 commit 0bcc6bb

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

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/Definition.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,14 @@ public function replaceArgument($index, $argument)
250250
return $this;
251251
}
252252

253+
/**
254+
* Sets a specific argument.
255+
*
256+
* @param int|string $key
257+
* @param mixed $value
258+
*
259+
* @return $this
260+
*/
253261
public function setArgument($key, $value)
254262
{
255263
$this->arguments[$key] = $value;
@@ -778,7 +786,7 @@ public function isAutowired()
778786
}
779787

780788
/**
781-
* Sets autowired.
789+
* Enables/disables autowiring.
782790
*
783791
* @param bool $autowired
784792
*

0 commit comments

Comments
 (0)
0