/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/JsonStreamer/Tests/ServiceContainer.php
38 строк
766 B
Mathias Arlaud
[JsonStreamer] Rename the component
26 фев 2025, 14:49
Не верифицирован
26 фев 2025, 14:49
924a01d
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\JsonStreamer\Tests; use Psr\Container\ContainerInterface; /** * A basic container implementation. */ class ServiceContainer implements ContainerInterface { /** * @param array<string, mixed> $services */ public function __construct( private array $services = [], ) { } public function has(string $id): bool { return isset($this->services[$id]); } public function get(string $id): mixed { return $this->services[$id]; } }