PHP code example of jascha030 / service-provider
1. Go to this page and download the library: Download jascha030/service-provider library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jascha030 / service-provider example snippets
declare(strict_types=1);
namespace Jascha030\DI\ServiceProvider;
use Closure;
use Psr\Container\ContainerInterface;
/**
* A service provider provides entries to a container.
*
* @see ContainerInterface
*/
interface ServiceProviderInterface
{
/**
* @return iterable<class-string|int|string,callable|Closure>
*/
public function getFactories(): iterable;
/**
* @return iterable<class-string|int|string,callable|Closure>
*/
public function getExtensions(): iterable;
}