comparison vendor/symfony/http-kernel/Controller/ControllerResolver.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
129 @trigger_error(sprintf('The "%s()" method is deprecated as of 3.1 and will be removed in 4.0. Implement the %s and inject it in the HttpKernel instead.', __METHOD__, ArgumentResolverInterface::class), E_USER_DEPRECATED); 129 @trigger_error(sprintf('The "%s()" method is deprecated as of 3.1 and will be removed in 4.0. Implement the %s and inject it in the HttpKernel instead.', __METHOD__, ArgumentResolverInterface::class), E_USER_DEPRECATED);
130 130
131 $attributes = $request->attributes->all(); 131 $attributes = $request->attributes->all();
132 $arguments = []; 132 $arguments = [];
133 foreach ($parameters as $param) { 133 foreach ($parameters as $param) {
134 if (array_key_exists($param->name, $attributes)) { 134 if (\array_key_exists($param->name, $attributes)) {
135 if ($this->supportsVariadic && $param->isVariadic() && \is_array($attributes[$param->name])) { 135 if ($this->supportsVariadic && $param->isVariadic() && \is_array($attributes[$param->name])) {
136 $arguments = array_merge($arguments, array_values($attributes[$param->name])); 136 $arguments = array_merge($arguments, array_values($attributes[$param->name]));
137 } else { 137 } else {
138 $arguments[] = $attributes[$param->name]; 138 $arguments[] = $attributes[$param->name];
139 } 139 }