PluginProbe
Unique Headers / trunk
Unique Headers vtrunk
2.1.3 2.1 2.1.1 2.0.1 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1 1.2 1.2.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.7 1.3.8 1.3.9 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 All 54 releases
unique-headers / vendor / inpsyde / modularity / src / Module / ServiceModule.php

ServiceModule.php in Unique Headers trunk, at vendor/inpsyde/modularity/src/Module/ServiceModule.php

24 lines 824 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare (strict_types=1);
4 namespace RyanHellyer\UniqueHeaders\Vendor\Inpsyde\Modularity\Module;
5
6 use RyanHellyer\UniqueHeaders\Vendor\Psr\Container\ContainerInterface;
7 /**
8 * @phpstan-type Service callable(ContainerInterface $container): mixed
9 */
10 interface ServiceModule extends Module
11 {
12 /**
13 * Return application services' factories.
14 *
15 * Array keys will be services' IDs in the container, array values are callback that
16 * accepts a PSR-11 container as parameter and return an instance of the service.
17 * Services are "cached", so the given factory is called once the first time `get()` is called
18 * in the container, and on subsequent `get()` the same instance is returned again and again.
19 *
20 * @return array<string, Service>
21 */
22 public function services(): array;
23 }
24