| 1 | <?php |
||
| 11 | class SectionApiFactory |
||
| 12 | { |
||
| 13 | private static $keySections = array('account', 'char', 'corp'); |
||
| 14 | |||
| 15 | private $keySectionApi; |
||
| 16 | private $noKeySectionApi; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @DI\InjectParams({ |
||
| 20 | * "keySectionApi" = @DI\Inject("tarioch.eveapi_fetcher_bundle.component.section.key_section_api"), |
||
| 21 | * "noKeySectionApi" = @DI\Inject("tarioch.eveapi_fetcher_bundle.component.section.no_key_section_api") |
||
| 22 | * }) |
||
| 23 | */ |
||
| 24 | public function __construct(KeySectionApi $keySectionApi, NoKeySectionApi $noKeySectionApi) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * |
||
| 32 | * @param ApiCall $call |
||
| 33 | * @return SectionApi |
||
| 34 | */ |
||
| 35 | public function create(ApiCall $call) |
||
| 44 | } |
||
| 45 |