1 | <?php |
||
21 | class RegistryFactory |
||
22 | { |
||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | protected static $classes = [ |
||
27 | 'bower' => BowerRegistry::class, |
||
28 | 'npm' => NpmRegistry::class, |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * @var AbstractAssetsRepository[] |
||
33 | */ |
||
34 | public static $registries = []; |
||
35 | |||
36 | /** |
||
37 | * @param string $type |
||
38 | * @param RepositoryManager $rm |
||
39 | * @return AbstractAssetsRepository|BowerRegistry|NpmRegistry |
||
40 | */ |
||
41 | public static function getRegistry($type, $rm) |
||
49 | |||
50 | /** |
||
51 | * @param string $type |
||
52 | * @param RepositoryManager $rm |
||
53 | * @return mixed |
||
54 | */ |
||
55 | protected static function buildRegistry($type, $rm) |
||
67 | |||
68 | public static function createAssetRepositoryManager($repositoryManager) |
||
74 | } |
||
75 |