|
11 | 11 | * @link https://github.com/php-fast-forward/container |
12 | 12 | * @copyright Copyright (c) 2025 Felipe Sayão Lobato Abreu <[email protected]> |
13 | 13 | * @license https://opensource.org/licenses/MIT MIT License |
| 14 | + * @see https://datatracker.ietf.org/doc/html/rfc2119 |
14 | 15 | */ |
15 | 16 |
|
16 | 17 | namespace FastForward\Container; |
|
21 | 22 | use Psr\Container\NotFoundExceptionInterface; |
22 | 23 |
|
23 | 24 | /** |
24 | | - * Class AutowireContainer. |
25 | | - * |
26 | 25 | * A composite container implementation that wraps another PSR-11 container and appends |
27 | | - * an internal PHP-DI autowiring container. It provides auto-resolution of services |
28 | | - * while maintaining compatibility with pre-defined service providers. |
| 26 | + * an internal PHP-DI autowiring container. |
| 27 | + * |
| 28 | + * It provides auto-resolution of services while maintaining compatibility with |
| 29 | + * pre-defined service providers. |
29 | 30 | * |
30 | 31 | * This container MUST be used in scenarios where automatic dependency resolution |
31 | 32 | * via autowiring is required alongside explicitly registered services. |
@@ -73,16 +74,6 @@ public function get(string $id): mixed |
73 | 74 | return $this->container->get($id); |
74 | 75 | } |
75 | 76 |
|
76 | | - /** |
77 | | - * Determines whether the container can return an entry for the given identifier. |
78 | | - * |
79 | | - * This method attempts to resolve the entry to confirm that it is not only registered, |
80 | | - * but also valid and free of runtime errors during instantiation. |
81 | | - * |
82 | | - * @param string $id identifier of the entry to check |
83 | | - * |
84 | | - * @return bool true if the container can return the entry, false otherwise |
85 | | - */ |
86 | 77 | public function has(string $id): bool |
87 | 78 | { |
88 | 79 | if (!$this->container->has($id)) { |
|
0 commit comments