You are here

public function DeveloperSyncController::run in Apigee Edge 8

Handler for 'apigee_edge.developer_sync.run'.

Starts the developer sync batch process.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The HTTP request.

Return value

\Symfony\Component\HttpFoundation\RedirectResponse HTTP response doing a redirect.

1 string reference to 'DeveloperSyncController::run'
apigee_edge.routing.yml in ./apigee_edge.routing.yml
apigee_edge.routing.yml

File

src/Controller/DeveloperSyncController.php, line 130

Class

DeveloperSyncController
Controller for the developer synchronization-related pages.

Namespace

Drupal\apigee_edge\Controller

Code

public function run(Request $request) : RedirectResponse {
  $destination = $request->query
    ->get('destination');
  $batch = static::getBatch();
  batch_set($batch);
  return batch_process($destination);
}