/** * Retrieves the dependencies config * * @return array */ protected function getDependencies() { if (null === $this->dependencies) { if (file_exists(sprintf('%s/dependencies.json', $this->paths->getThemeConfigDir()))) { $depsContent = file_get_contents(sprintf('%s/dependencies.json', $this->paths->getThemeConfigDir())); } else { $depsContent = file_get_contents(sprintf('%s/dependencies.json', $this->paths->getBaseConfigDir())); } $this->dependencies = json_decode($depsContent, true); } return $this->dependencies; }