File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed
src/Symfony/Component/DependencyInjection Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -729,8 +729,8 @@ public function getAlias($id)
729
729
* This methods allows for simple registration of service definition
730
730
* with a fluid interface.
731
731
*
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
734
734
*
735
735
* @return Definition A Definition instance
736
736
*/
Original file line number Diff line number Diff line change @@ -265,18 +265,38 @@ public function setArguments(array $arguments)
265
265
return $ this ;
266
266
}
267
267
268
+ /**
269
+ * Sets the properties to define when creating the service.
270
+ *
271
+ * @param array $properties
272
+ *
273
+ * @return $this
274
+ */
268
275
public function setProperties (array $ properties )
269
276
{
270
277
$ this ->properties = $ properties ;
271
278
272
279
return $ this ;
273
280
}
274
281
282
+ /**
283
+ * Gets the properties to define when creating the service.
284
+ *
285
+ * @return array
286
+ */
275
287
public function getProperties ()
276
288
{
277
289
return $ this ->properties ;
278
290
}
279
291
292
+ /**
293
+ * Sets a specific property.
294
+ *
295
+ * @param string $name
296
+ * @param mixed $value
297
+ *
298
+ * @return $this
299
+ */
280
300
public function setProperty ($ name , $ value )
281
301
{
282
302
$ this ->properties [$ name ] = $ value ;
@@ -299,7 +319,7 @@ public function addArgument($argument)
299
319
}
300
320
301
321
/**
302
- * Sets a specific argument.
322
+ * Replaces a specific argument.
303
323
*
304
324
* @param int $index
305
325
* @param mixed $argument
@@ -854,7 +874,7 @@ public function isAutowired()
854
874
}
855
875
856
876
/**
857
- * Sets autowired .
877
+ * Enables/disables autowiring .
858
878
*
859
879
* @param bool $autowired
860
880
*
You can’t perform that action at this time.
0 commit comments