File tree
3 files changed
+22
-0
lines changed- src/Symfony/Component/DependencyInjection
- Tests
3 files changed
+22
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| 8 | + | |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
|
Lines changed: 11 additions & 0 deletions
@@ -937,6 +937,17 @@ public function register(string $id, ?string $class = null): Definition
937
937
return $this->setDefinition($id, new Definition($class));
938
938
}
939
939
940
+ /**
941
+ * Registers a service definition.
942
+ *
943
+ * This method allows for simple registration of service definition
944
+ * with a fluid interface.
945
+ */
946
+ public function registerChild(string $id, string $parent): ChildDefinition
947
+ {
948
+ return $this->setDefinition($id, new ChildDefinition($parent));
949
+ }
950
+
940
951
/**
941
952
* Registers an autowired service definition.
942
953
*
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
219 | 229 |
| |
220 | 230 |
| |
221 | 231 |
| |
|
0 commit comments