original_string: private function loadDomains()
      {
          $domains = Cache::getInstance()->getDataFromFile(CONFIG_DIR . DIRECTORY_SEPARATOR . 'domains.json', Cache::JSON, true);
          if (null !== $domains) {
              foreach ($domains as $domain => $paths) {
                  $this->addPath($paths['template'], preg_replace('/(@|\/)/', '', $domain));
              }
          }
      }
code: private function loadDomains()
      {
          $domains = Cache::getInstance()->getDataFromFile(CONFIG_DIR . DIRECTORY_SEPARATOR . 'domains.json', Cache::JSON, true);
          if (null !== $domains) {
              foreach ($domains as $domain => $paths) {
                  $this->addPath($paths['template'], preg_replace('/(@|\/)/', '', $domain));
              }
          }
      }
code_tokens: private function loadDomains ( ) { $ domains = Cache :: getInstance ( ) -> getDataFromFile ( CONFIG_DIR . DIRECTORY_SEPARATOR . 'domains.json' , Cache :: JSON , true ) ; if ( null !== $ domains ) { foreach ( $ domains as $ domain => $ paths ) { $ this -> addPath ( $ paths [ 'template' ] , preg_replace ( '/(@|\/)/' , '' , $ domain ) ) ; } } }
docstring: Method that extract all domains for using them with the templates
docstring_tokens: Method that extract all domains for using them with the templates