CoreFiles by mySites.guru
ServiceProviderInterface.php36 lines, 1,210 bytes, from Joomla_4.0.0-alpha10-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha9
md5
29b886ced321fe9b7c7499f6cc77e048
sha1
e3922526bd6c96ea14efb381a1a0faa6e11be5e4
sha256
ce4023db058d784aece3e8fbf50aeb502271c1020d95bb7f7a9ee21e9209b03b
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Contracts\Service;

use Psr\Container\ContainerInterface;

/**
 * A ServiceProviderInterface exposes the identifiers and the types of services provided by a container.
 *
 * @author Nicolas Grekas <[email protected]>
 * @author Mateusz Sip <[email protected]>
 */
interface ServiceProviderInterface extends ContainerInterface
{
    /**
     * Returns an associative array of service types keyed by the identifiers provided by the current container.
     *
     * Examples:
     *
     *  * ['logger' => 'Psr\Log\LoggerInterface'] means the object provides a service named "logger" that implements Psr\Log\LoggerInterface
     *  * ['foo' => '?'] means the container provides service name "foo" of unspecified type
     *  * ['bar' => '?Bar\Baz'] means the container provides a service "bar" of type Bar\Baz|null
     *
     * @return string[] The provided service types, keyed by service names
     */
    public function getProvidedServices(): array;
}

The same content is in 156 releases, Joomla 4.0.0-alpha10 to 5.1.0-alpha4. See them all, or every version of this file.