Skip to content

Commit 2ebd755

Browse files
committed
The class of a service definition might be passed as parameter.
1 parent 6eeec65 commit 2ebd755

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/DependencyInjection/Definition.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ class Definition
5151
private static $defaultDeprecationTemplate = 'The "%service_id%" service is deprecated. You should stop using it, as it will soon be removed.';
5252

5353
/**
54-
* @param string|null $class The service class
55-
* @param array $arguments An array of arguments to pass to the service constructor
54+
* @param string|Parameter|null $class The service class
55+
* @param array $arguments An array of arguments to pass to the service constructor
5656
*/
5757
public function __construct($class = null, array $arguments = [])
5858
{
@@ -157,7 +157,7 @@ public function getDecoratedService()
157157
/**
158158
* Sets the service class.
159159
*
160-
* @param string $class The service class
160+
* @param string|Parameter|null $class The service class
161161
*
162162
* @return $this
163163
*/
@@ -173,7 +173,7 @@ public function setClass($class)
173173
/**
174174
* Gets the service class.
175175
*
176-
* @return string|null The service class
176+
* @return string|Parameter|null The service class
177177
*/
178178
public function getClass()
179179
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy