FeaturesIntegrations
1 month ago
GetSettingsController.php
1 month ago
UpdateSettingsCategoriesController.php
1 month ago
UpdateSettingsController.php
2 weeks ago
GetSettingsController.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaBooking\Application\Controller\Settings; |
| 4 | |
| 5 | use AmeliaBooking\Application\Commands\Settings\GetSettingsCommand; |
| 6 | use AmeliaBooking\Application\Controller\Controller; |
| 7 | use AmeliaVendor\Psr\Http\Message\ServerRequestInterface as Request; |
| 8 | |
| 9 | /** |
| 10 | * Class GetSettingsController |
| 11 | * |
| 12 | * @package AmeliaBooking\Application\Controller\Settings |
| 13 | */ |
| 14 | class GetSettingsController extends Controller |
| 15 | { |
| 16 | /** |
| 17 | * @param Request $request |
| 18 | * @param $args |
| 19 | * |
| 20 | * @return GetSettingsCommand |
| 21 | */ |
| 22 | protected function instantiateCommand(Request $request, $args) |
| 23 | { |
| 24 | $command = new GetSettingsCommand($args); |
| 25 | $requestBody = $request->getParsedBody(); |
| 26 | $this->setCommandFields($command, $requestBody); |
| 27 | |
| 28 | return $command; |
| 29 | } |
| 30 | } |
| 31 |