Example #1
0
 /**
  * Locale domains.
  *
  * @return array
  */
 public function getDomains()
 {
     $domains = array_keys($this->domains);
     foreach ($this->memory->getSections(static::MEMORY_LOCATION) as $section) {
         if (strpos($section, "{$this->locale}-") === 0) {
             $domains[] = substr($section, strlen("{$this->locale}-"));
         }
     }
     return array_unique($domains);
 }