8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9cfc3 commit 2aa459aCopy full SHA for 2aa459a
src/Symfony/Contracts/Service/ServiceProviderInterface.php
@@ -18,9 +18,23 @@
18
*
19
* @author Nicolas Grekas <p@tchwork.com>
20
* @author Mateus 8000 z Sip <mateusz.sip@gmail.com>
21
+ *
22
+ * @template T of mixed
23
*/
24
interface ServiceProviderInterface extends ContainerInterface
25
{
26
+ /**
27
+ * {@inheritdoc}
28
29
+ * @return T
30
+ */
31
+ public function get(string $id): mixed;
32
+
33
34
35
36
+ public function has(string $id): bool;
37
38
/**
39
* Returns an associative array of service types keyed by the identifiers provided by the current container.
40
0 commit comments