Attribute
2 years ago
Test
1 month ago
ResetInterface.php
2 years ago
ServiceLocatorTrait.php
1 month ago
ServiceProviderInterface.php
2 years ago
ServiceSubscriberInterface.php
1 month ago
ServiceSubscriberTrait.php
1 month ago
ServiceProviderInterface.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace IAWPSCOPED\Symfony\Contracts\Service; |
| 12 | |
| 13 | use IAWPSCOPED\Psr\Container\ContainerInterface; |
| 14 | /** |
| 15 | * A ServiceProviderInterface exposes the identifiers and the types of services provided by a container. |
| 16 | * |
| 17 | * @author Nicolas Grekas <p@tchwork.com> |
| 18 | * @author Mateusz Sip <mateusz.sip@gmail.com> |
| 19 | * @internal |
| 20 | */ |
| 21 | interface ServiceProviderInterface extends ContainerInterface |
| 22 | { |
| 23 | /** |
| 24 | * Returns an associative array of service types keyed by the identifiers provided by the current container. |
| 25 | * |
| 26 | * Examples: |
| 27 | * |
| 28 | * * ['logger' => 'Psr\Log\LoggerInterface'] means the object provides a service named "logger" that implements Psr\Log\LoggerInterface |
| 29 | * * ['foo' => '?'] means the container provides service name "foo" of unspecified type |
| 30 | * * ['bar' => '?Bar\Baz'] means the container provides a service "bar" of type Bar\Baz|null |
| 31 | * |
| 32 | * @return string[] The provided service types, keyed by service names |
| 33 | */ |
| 34 | public function getProvidedServices() : array; |
| 35 | } |
| 36 |