Вход Регистрация
Файл: system/vendor/laminas/laminas-servicemanager/src/FactoryInterface.php
Строк: 78
<?php

/**
 * @see       https://github.com/laminas/laminas-servicemanager for the canonical source repository
 * @copyright https://github.com/laminas/laminas-servicemanager/blob/master/COPYRIGHT.md
 * @license   https://github.com/laminas/laminas-servicemanager/blob/master/LICENSE.md New BSD License
 */

namespace LaminasServiceManager;

/**
 * Backwards-compatibility shim for FactoryInterface.
 *
 * Implementations should update to implement only LaminasServiceManagerFactoryFactoryInterface.
 *
 * If upgrading from v2, take the following steps:
 *
 * - rename the method `createService()` to `__invoke()`, and:
 *   - rename the `$serviceLocator` argument to `$container`, and change the
 *     typehint to `InteropContainerContainerInterface`
 *   - add the `$requestedName` as a second argument
 *   - add the optional `array $options = null` argument as a final argument
 * - create a `createService()` method as defined in this interface, and have it
 *   proxy to `__invoke()`.
 *
 * Once you have tested your code, you can then update your class to only implement
 * LaminasServiceManagerFactoryFactoryInterface, and remove the `createService()`
 * method.
 *
 * @deprecated Use LaminasServiceManagerFactoryFactoryInterface instead.
 */
interface FactoryInterface extends FactoryFactoryInterface
{
    
/**
     * Create service
     *
     * @param ServiceLocatorInterface $serviceLocator
     * @return mixed
     */
    
public function createService(ServiceLocatorInterface $serviceLocator);
}
Онлайн: 1
Реклама