for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace keeko\core\action;
use keeko\framework\foundation\AbstractAction;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\OptionsResolver\OptionsResolver;
use phootwork\json\Json;
use Tobscure\JsonApi\Exception\InvalidParameterException;
use keeko\core\domain\LocalizationDomain;
/**
* Adds application_uri as relationship to localization
*
* This code is automatically created. Modifications will probably be overwritten.
* @author gossi
*/
class LocalizationApplicationUriAddAction extends AbstractAction {
* @param OptionsResolver $resolver
public function configureParams(OptionsResolver $resolver) {
$resolver->setRequired(['id']);
}
* Automatically generated run method
* @param Request $request
* @return Response
public function run(Request $request) {
$body = Json::decode($request->getContent());
if (!isset($body['data'])) {
throw new InvalidParameterException();
$data = $body['data'];
$id = $this->getParam('id');
$domain = new LocalizationDomain($this->getServiceContainer());
$payload = $domain->addApplicationUri($id, $data);
addApplicationUri()
keeko\core\domain\LocalizationDomain
addApplicationUris()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
return $this->responder->run($request, $payload);
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.