mirror of
https://github.com/SkillDisplay/TYPO3ContentElements.git
synced 2024-11-24 20:06:10 +01:00
Daniel Siepmann
01d25e4c49
Content elements could not be created, since they needed campaigns. In order to retrieve campaigns, the API needs to be created. The API needs settings from current site, which is not available in that context. Therefore the factory is extended to also fetch site and their settings based on page uid. The page uid is available in the context. Since we now interact with guzzle, we add the dependency. Wouldn't be necessary if SDK would have PSR compatible type hints. Also tests were added for code, to keep code coverage. Fixes: #5
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
services:
|
|
_defaults:
|
|
autowire: true
|
|
autoconfigure: true
|
|
public: false
|
|
|
|
SkillDisplay\Typo3Extension\:
|
|
resource: '../Classes/*'
|
|
|
|
SkillDisplay\Typo3Extension\Frontend\DataProcessing\:
|
|
resource: '../Classes/Frontend/DataProcessing/*'
|
|
public: true
|
|
|
|
skilldisplay.settings:
|
|
class: 'SkillDisplay\PHPToolKit\Configuration\Settings'
|
|
factory:
|
|
- '@SkillDisplay\Typo3Extension\SettingsFactory'
|
|
- 'createFromCurrentSiteConfiguration'
|
|
|
|
SkillDisplay\PHPToolKit\Configuration\Settings:
|
|
alias: '@skilldisplay.settings'
|
|
|
|
SkillDisplay\PHPToolKit\Api\Skill:
|
|
arguments:
|
|
$settings: '@skilldisplay.settings'
|
|
|
|
SkillDisplay\PHPToolKit\Api\SkillSet:
|
|
arguments:
|
|
$settings: '@skilldisplay.settings'
|
|
|
|
SkillDisplay\PHPToolKit\Api\Campaigns:
|
|
arguments:
|
|
$settings: '@skilldisplay.settings'
|
|
|
|
SkillDisplay\PHPToolKit\Verification\Link:
|
|
public: true
|
|
arguments:
|
|
$settings: '@skilldisplay.settings'
|
|
|
|
SkillDisplay\Typo3Extension\Backend\Preview:
|
|
public: true
|
|
|
|
SkillDisplay\Typo3Extension\TcaEnhancer:
|
|
public: true
|