function ApiController::run
Begins a stage life cycle.
Creates a stage directory, requires packages into it, applies changes to the active directory.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The request. The runtime and dev dependencies are expected to be in either the query string or request body, under the 'runtime' and 'dev' keys, respectively.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse A response that directs to the ::finish() method.
See also
::finish()
1 string reference to 'ApiController::run'
- package_manager_test_api.routing.yml in core/
modules/ package_manager/ tests/ modules/ package_manager_test_api/ package_manager_test_api.routing.yml - core/modules/package_manager/tests/modules/package_manager_test_api/package_manager_test_api.routing.yml
File
-
core/
modules/ package_manager/ tests/ modules/ package_manager_test_api/ src/ ApiController.php, line 72
Class
- ApiController
- Provides API endpoints to interact with a stage directory in functional test.
Namespace
Drupal\package_manager_test_apiCode
public function run(Request $request) : RedirectResponse {
$id = $this->createAndApplyStage($request);
$redirect_url = Url::fromRoute($this->finishedRoute)
->setRouteParameter('id', $id)
->setAbsolute()
->toString();
return new RedirectResponse($redirect_url);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.