2015-06-23 09:04:02 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Skobkin\Bundle\PointToolsBundle\Service;
|
|
|
|
|
2017-01-08 23:26:06 +00:00
|
|
|
use GuzzleHttp\ClientInterface;
|
2017-01-09 01:42:06 +00:00
|
|
|
use Psr\Log\LoggerInterface;
|
2016-03-23 17:06:49 +00:00
|
|
|
use Skobkin\Bundle\PointToolsBundle\Service\Factory\Blogs\PostFactory;
|
2015-06-23 09:04:02 +00:00
|
|
|
|
|
|
|
/**
|
2015-10-26 03:00:39 +00:00
|
|
|
* Basic Point.im user API functions from /api/post
|
2015-06-23 09:04:02 +00:00
|
|
|
*/
|
|
|
|
class PostApi extends AbstractApi
|
|
|
|
{
|
|
|
|
/**
|
2015-10-26 03:00:39 +00:00
|
|
|
* @var PostFactory
|
2015-06-23 09:04:02 +00:00
|
|
|
*/
|
2015-10-26 03:00:39 +00:00
|
|
|
private $postFactory;
|
2015-06-23 09:04:02 +00:00
|
|
|
|
|
|
|
|
2017-01-09 01:42:06 +00:00
|
|
|
public function __construct(ClientInterface $httpClient, LoggerInterface $logger, PostFactory $postFactory)
|
2015-06-23 09:04:02 +00:00
|
|
|
{
|
2017-01-09 01:42:06 +00:00
|
|
|
parent::__construct($httpClient, $logger);
|
2015-06-23 09:04:02 +00:00
|
|
|
|
2015-10-26 03:00:39 +00:00
|
|
|
$this->postFactory = $postFactory;
|
2015-06-23 09:04:02 +00:00
|
|
|
}
|
|
|
|
}
|