Exemplo n.º 1
0
 /**
  * Initializes the {@link $repository} and {@link $code} properties.
  *
  * @param Repository $repository
  * @param string $code The ISO code of the locale.
  */
 public function __construct(Repository $repository, $code)
 {
     if (!$code) {
         throw new \InvalidArgumentException("Locale identifier cannot be empty.");
     }
     parent::__construct($repository, "main/{$code}", self::$available_sections);
     $this->code = $code;
 }
Exemplo n.º 2
0
 /**
  * @param Repository $repository
  */
 public function __construct(Repository $repository)
 {
     parent::__construct($repository, 'supplemental', self::$available_sections);
 }