@@ 53-64 (lines=12) @@ | ||
50 | } |
|
51 | ||
52 | ||
53 | public function createCssControl($section) |
|
54 | { |
|
55 | if(!isset($this->config[$section])){ |
|
56 | throw new \InvalidArgumentException("Section $section not found. Did you set it in config?"); |
|
57 | } |
|
58 | $control = new CssControl(); |
|
59 | if(isset($this->config[$section]['css'])){ |
|
60 | $control->setFiles($this->config[$section]['css']); |
|
61 | } |
|
62 | $control->setBasePath($this->basePath); |
|
63 | return $control; |
|
64 | } |
|
65 | ||
66 | ||
67 | public function createJsControl($section) |
|
@@ 67-78 (lines=12) @@ | ||
64 | } |
|
65 | ||
66 | ||
67 | public function createJsControl($section) |
|
68 | { |
|
69 | if(!isset($this->config[$section])){ |
|
70 | throw new \InvalidArgumentException("Section $section not found. Did you set it in config?"); |
|
71 | } |
|
72 | $control = new JsControl(); |
|
73 | if(isset($this->config[$section]['js'])) { |
|
74 | $control->setFiles($this->config[$section]['js']); |
|
75 | } |
|
76 | $control->setBasePath($this->basePath); |
|
77 | return $control; |
|
78 | } |
|
79 | ||
80 | } |