Example #1
0
 /**
  * @param Style $style
  * @return $this
  */
 public function addStyle(Style $style)
 {
     self::$styles[$style->getName()] = $style;
     return $this;
 }
 private function loadStyles()
 {
     $mainStyle = Style::run(['name' => 'main']);
     $this->dom->addStyle($mainStyle);
 }
Example #3
0
 public function loadStyle()
 {
     $this->dom->addStyle(Style::run(['name' => 'splash']));
 }