comparison vendor/symfony/http-kernel/Fragment/RoutableFragmentRenderer.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
9 * file that was distributed with this source code. 9 * file that was distributed with this source code.
10 */ 10 */
11 11
12 namespace Symfony\Component\HttpKernel\Fragment; 12 namespace Symfony\Component\HttpKernel\Fragment;
13 13
14 use Symfony\Component\HttpFoundation\Request;
14 use Symfony\Component\HttpKernel\Controller\ControllerReference; 15 use Symfony\Component\HttpKernel\Controller\ControllerReference;
15 use Symfony\Component\HttpFoundation\Request;
16 use Symfony\Component\HttpKernel\EventListener\FragmentListener; 16 use Symfony\Component\HttpKernel\EventListener\FragmentListener;
17 17
18 /** 18 /**
19 * Adds the possibility to generate a fragment URI for a given Controller. 19 * Adds the possibility to generate a fragment URI for a given Controller.
20 * 20 *
78 } 78 }
79 79
80 private function checkNonScalar($values) 80 private function checkNonScalar($values)
81 { 81 {
82 foreach ($values as $key => $value) { 82 foreach ($values as $key => $value) {
83 if (is_array($value)) { 83 if (\is_array($value)) {
84 $this->checkNonScalar($value); 84 $this->checkNonScalar($value);
85 } elseif (!is_scalar($value) && null !== $value) { 85 } elseif (!is_scalar($value) && null !== $value) {
86 throw new \LogicException(sprintf('Controller attributes cannot contain non-scalar/non-null values (value for key "%s" is not a scalar or null).', $key)); 86 throw new \LogicException(sprintf('Controller attributes cannot contain non-scalar/non-null values (value for key "%s" is not a scalar or null).', $key));
87 } 87 }
88 } 88 }