@@ -49,17 +49,7 @@ public function __construct(protected Definition\DefinitionSourceInterface $defi
49
49
}
50
50
51
51
/**
52
- * Build an entry of the container by its name.
53
- * This method behave like get() except resolves the entry again every time.
54
- * For example if the entry is a class then a new instance will be created each time.
55
- * This method makes the container behave like a factory.
56
- *
57
- * @param string $name entry name or a class name
58
- * @param array $parameters Optional parameters to use to build the entry. Use this to force specific parameters
59
- * to specific values. Parameters not defined in this array will be resolved using
60
- * the container.
61
- * @throws NotFoundException no entry found for the given name
62
- * @throws InvalidArgumentException the name parameter must be of type string
52
+ * @internal
63
53
*/
64
54
public function make (string $ name , array $ parameters = [])
65
55
{
@@ -73,8 +63,7 @@ public function make(string $name, array $parameters = [])
73
63
}
74
64
75
65
/**
76
- * Bind an arbitrary resolved entry to an identifier.
77
- * Useful for testing 'get'.
66
+ * @internal
78
67
* @param mixed $entry
79
68
*/
80
69
public function set (string $ name , $ entry ): void
@@ -83,7 +72,7 @@ public function set(string $name, $entry): void
83
72
}
84
73
85
74
/**
86
- * Unbind an arbitrary resolved entry.
75
+ * @internal
87
76
*/
88
77
public function unbind (string $ name ): void
89
78
{
@@ -93,20 +82,17 @@ public function unbind(string $name): void
93
82
}
94
83
95
84
/**
96
- * Bind an arbitrary definition to an identifier.
97
- * Useful for testing 'make'.
98
- *
99
- * @param array|callable|string $definition
85
+ * @internal
86
+ * @param mixed $definition
100
87
*/
101
88
public function define (string $ name , $ definition ): void
102
89
{
103
90
$ this ->setDefinition ($ name , $ definition );
104
91
}
105
92
106
93
/**
107
- * Finds an entry of the container by its identifier and returns it.
108
- *
109
- * @param string $id identifier of the entry to look for
94
+ * @internal
95
+ * @param mixed $id
110
96
*/
111
97
public function get ($ id )
112
98
{
@@ -118,12 +104,8 @@ public function get($id)
118
104
}
119
105
120
106
/**
121
- * Returns true if the container can return an entry for the given identifier.
122
- * Returns false otherwise.
123
- * `has($name)` returning true does not mean that `get($name)` will not throw an exception.
124
- * It does however mean that `get($name)` will not throw a `NotFoundExceptionInterface`.
125
- *
126
- * @param mixed|string $id identifier of the entry to look for
107
+ * @internal
108
+ * @param mixed $id
127
109
*/
128
110
public function has ($ id ): bool
129
111
{
0 commit comments