1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-17 04:40:08 -07:00

Setup collection service

This commit is contained in:
David Hübner 2016-11-11 18:36:08 +01:00
parent 1a0d1d6b2a
commit 2d57bc8ed3
2 changed files with 36 additions and 1 deletions

View File

@ -4,4 +4,7 @@ services:
arguments: ['%brickset_apikey%'] arguments: ['%brickset_apikey%']
client.rebrickable: client.rebrickable:
class: AppBundle\Client\Rebrickable\Rebrickable class: AppBundle\Client\Rebrickable\Rebrickable
arguments: ['%rebrickable_apikey%'] arguments: ['%rebrickable_apikey%']
service.collection:
class: AppBundle\Service\CollectionService
arguments: ['@client.brickset','@client.rebrickable']

View File

@ -0,0 +1,32 @@
<?php
namespace AppBundle\Service;
use AppBundle\Client\Brickset\Brickset;
use AppBundle\Client\Rebrickable\Rebrickable;
class CollectionService
{
/**
* @var Brickset
*/
private $bricksetClient;
/**
* @var Rebrickable
*/
private $rebrickableClient;
/**
* CollectionService constructor.
*
* @param $bricksetClient
* @param $rebrickableClient
*/
public function __construct($bricksetClient, $rebrickableClient)
{
$this->bricksetClient = $bricksetClient;
$this->rebrickableClient = $rebrickableClient;
}
}