/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Setup/Mvc/ServiceLocatorInterface.php
40 строк
928 B
Dnyaneshwar S Jambhulkar
AC-15068::Laminas MVC Retiring
19 авг 2025, 23:34
19 авг 2025, 23:34
8fba4a4
Код
Авторство
О чём код?
<?php /** * Copyright 2025 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\Framework\Setup\Mvc; /** * Service locator interface for setup MVC components * Provides compatibility with Laminas ServiceManager ServiceLocatorInterface */ interface ServiceLocatorInterface { /** * Retrieve a service from the manager by name * * @param string $name * @return mixed */ public function get(string $name): mixed; /** * Test for whether or not a service is registered in the manager * * @param string $name * @return bool */ public function has(string $name): bool; /** * Build a service by its name, using optional options (such as from plugin managers) * * @param string $name * @param array|null $options * @return mixed */ public function build(string $name, ?array $options = null): mixed; }