1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
declare(strict_types=1);
namespace Laminas\Di;
/**
* Provides the instance and resolver configuration
*/
interface ConfigInterface
{
/**
* Check if the provided type name is aliased
*/
public function isAlias(string $name): bool;
/**
* @return string[]
*/
public function getConfiguredTypeNames(): array;
/**
* Returns the actual class name for an alias
*/
public function getClassForAlias(string $name): ?string;
/**
* Returns the instanciation parameters for the given type
*
* @param string $type The alias or class name
* @return array The configured parameter hash
*/
public function getParameters(string $type): array;
/**
* Set the instanciation parameters for the given type
*/
public function setParameters(string $type, array $params);
/**
* Configured type preference
*/
public function getTypePreference(string $type, ?string $contextClass = null): ?string;
}