src/Subscriber/CustomerMigrationSubscriber.php
public function onSuccess(CustomerMigrateEvent $event)
    {
        $route = $this->routeProvider->customer_migrate_success;
        $route->setParameters(array(
            'uuid' => $event->getUuid()
        ));

        $response = $route->process(function ($request) use ($event) {
            $request->addHeader($event->getBasicHeader());

            $request->setContent(array(
                'status' => $event->getStatus()
            ));
        });

        $event->setResponse($response);
    }
public function onSuccess(CustomerMigrateEvent $event)
    {
        $route = $this->routeProvider->customer_migrate_success;
        $route->setParameters(array(
            'uuid' => $event->getUuid()
        ));

        $response = $route->process(function ($request) use ($event) {
            $request->addHeader($event->getBasicHeader());

            $request->setContent(array(
                'status' => $event->getStatus()
            ));
        });

        $event->setResponse($response);
    }
public function onSuccess ( CustomerMigrateEvent $ event ) { $ route = $ this -> routeProvider -> customer_migrate_success ; $ route -> setParameters ( array ( 'uuid' => $ event -> getUuid ( ) ) ) ; $ response = $ route -> process ( function ( $ request ) use ( $ event ) { $ request -> addHeader ( $ event -> getBasicHeader ( ) ) ; $ request -> setContent ( array ( 'status' => $ event -> getStatus ( ) ) ) ; } ) ; $ event -> setResponse ( $ response ) ; }
Additional third request to notify the application that we've added the user successfully
@codeCoverageIgnore
Additional third request to notify the application that we ve added the user successfully