Skip to content

Commit c8e8dd2

Browse files
committed
eklemeler yapıldı.
1 parent 50ed406 commit c8e8dd2

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

src/SystemApi/Site/Galleries.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
class Galleries extends Service
66
{
7+
public function items($data)
8+
{
9+
return $this->c->backend->get('/site/galleries/items', $data);
10+
}
11+
712
public function contents($data)
813
{
914
return $this->c->backend->get('/site/galleries/contents', $data);

src/SystemApi/Site/News.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}

src/SystemApi/SiteService.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use SystemApi\Site\ContactForms;
55
use SystemApi\Site\Galleries;
66
use SystemApi\Site\Headlines;
7+
use SystemApi\Site\News;
78
use SystemApi\Site\Pages;
89
use SystemApi\Site\Products;
910
use SystemApi\Site\Settings;
@@ -45,4 +46,10 @@ class SiteService extends Service
4546
* @var Galleries
4647
*/
4748
public $galleries;
49+
50+
/**
51+
* @Inject
52+
* @var News
53+
*/
54+
public $news;
4855
}

0 commit comments

Comments
 (0)