getRuntime(); if (isset($runtimeManifest['src'])) { $paths['src'] = preg_replace('/^' . $this->getTypeIdentifier() . '/', '.', $runtimeManifest['src']); } $modules = []; if (isset($runtimeManifest['modules'])) { foreach ($runtimeManifest['modules'] as $module) { //merge all module declaration as numeric array $modules = array_merge($modules, array_values($module)); } } if (isset($runtimeManifest['config'])) { $configs = []; foreach ($runtimeManifest['config'] as $config) { if (isset($config['file'])) { $configs[] = $config['file']; } if (isset($config['data']) && isset($config['data']['paths']) && is_array($config['data']['paths'])) { $modules = array_merge($modules, array_values($config['data']['paths'])); } } $paths['config'] = $configs; } $paths['modules'] = $modules; return $paths; } public function getRuntimeAliases() { $runtimeManifest = $this->getRuntime(); if (isset($runtimeManifest['src'])) { $runtimeManifest['src'] = preg_replace('/^(.\/)?(.*)/', $this->getTypeIdentifier() . "/$2", $runtimeManifest['src']); } return $runtimeManifest; } }