Configuration API v1: SP support

Adding the first version of the configuration API to get SP configuration to the Gateway
The thing is that I'd then also have to create a custom constraint and
ConstraintValidator (which in essence is my validator). Might clean things
up a bit. Will ponder about it.

On Fri, Nov 28, 2014 at 9:24 AM, Reinier Kip <notifications@github.com>
wrote:

> In
> src/Surfnet/StepupMiddleware/ManagementBundle/Controller/ConfigurationController.php:
>
> > +
> > +use Assert\InvalidArgumentException;
> > +use DateTime;
> > +use Exception;
> > +use GuzzleHttp;
> > +use InvalidArgumentException as CoreInvalidArgumentException;
> > +use Rhumsaa\Uuid\Uuid;
> > +use Surfnet\StepupMiddleware\CommandHandlingBundle\Command\Command;
> > +use Surfnet\StepupMiddleware\CommandHandlingBundle\Configuration\Command\UpdateConfigurationCommand;
> > +use Symfony\Bundle\FrameworkBundle\Controller\Controller;
> > +use Symfony\Component\HttpFoundation\JsonResponse;
> > +use Symfony\Component\HttpFoundation\Request;
> > +
> > +class ConfigurationController extends Controller
> > +{
> > +    public function updateAction(Request $request)
>
> You can create a Symfony2 validator which wraps your validator and sets
> the message as violation on the configuration property. No es problemo.
> Your call.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/SURFnet/Stepup-Middleware/pull/19/files#r21020461>.
>



-- 
 ibuildings
WEB & MOBILE APP DEVELOPMENT

Daan van Renterghem
Software Engineer

phone (direct): +31 30 75 51 590
skype: dvrenterghem-ibuildings
e-mail: dvrenterghem@ibuildings.nl
phone: +31 88 00 24 000
www.ibuildings.nl

To all agreements with Ibuildings.nl BV, our general terms and conditions
<http://www.ibuildings.nl/algemene_voorwaarden> apply.