getConfig(); $config->get('cwd'); $this->output()->writeln("Loading licenses from $file."); $cwd = $this->config->get('env')['cwd']; $full_path = $cwd . '/' . $file; $file_contents = file_get_contents($full_path); $license_data = Yaml::decode($file_contents); foreach ($license_data as $license_item) { $icon_file_path = isset($license_item['icon_file']) ? $cwd . '/' . $license_item['icon_file'] : ''; LicenseLoader::createLicenseTerm($license_item['title'],$license_item['short_label'], $icon_file_path, $license_item['url']); } } }