File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
class Galleries extends Service
6
6
{
7
+ public function items ($ data )
8
+ {
9
+ return $ this ->c ->backend ->get ('/site/galleries/items ' , $ data );
10
+ }
11
+
7
12
public function contents ($ data )
8
13
{
9
14
return $ this ->c ->backend ->get ('/site/galleries/contents ' , $ data );
Original file line number Diff line number Diff line change
1
+ <?php namespace SystemApi \Site ;
2
+
3
+ use SystemApi \Base \Service ;
4
+
5
+ class News extends Service
6
+ {
7
+ public function items ($ data )
8
+ {
9
+ return $ this ->c ->backend ->get ('/site/news/items ' , $ data );
10
+ }
11
+ }
Original file line number Diff line number Diff line change 4
4
use SystemApi \Site \ContactForms ;
5
5
use SystemApi \Site \Galleries ;
6
6
use SystemApi \Site \Headlines ;
7
+ use SystemApi \Site \News ;
7
8
use SystemApi \Site \Pages ;
8
9
use SystemApi \Site \Products ;
9
10
use SystemApi \Site \Settings ;
@@ -45,4 +46,10 @@ class SiteService extends Service
45
46
* @var Galleries
46
47
*/
47
48
public $ galleries ;
49
+
50
+ /**
51
+ * @Inject
52
+ * @var News
53
+ */
54
+ public $ news ;
48
55
}
You can’t perform that action at this time.
0 commit comments