protected UpdateKernel::setupRequestMatch(Request $request)
Set up the request with fake routing data for update.php.
This fake routing data is needed in order to make batch API work properly.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The incoming request.
File
- core/lib/Drupal/Core/Update/UpdateKernel.php, line 150
Class
- UpdateKernel
- Defines a kernel which is used primarily to run the update of Drupal.
Namespace
Drupal\Core\Update
Code
1 2 3 4 5 6 7 8 9 10 | protected function setupRequestMatch(Request $request ) { $path = $request ->getPathInfo(); $args = explode ( '/' , ltrim( $path , '/' )); $request ->attributes->set(RouteObjectInterface::ROUTE_NAME, 'system.db_update' ); $request ->attributes->set(RouteObjectInterface::ROUTE_OBJECT, $this ->getContainer()->get( 'router.route_provider' )->getRouteByName( 'system.db_update' )); $op = $args [0] ? : 'info' ; $request ->attributes->set( 'op' , $op ); $request ->attributes->set( '_raw_variables' , new ParameterBag([ 'op' => $op ])); } |
Please login to continue.