You are here

private function RoutableFragmentRenderer::checkNonScalar in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Fragment/RoutableFragmentRenderer.php \Symfony\Component\HttpKernel\Fragment\RoutableFragmentRenderer::checkNonScalar()
1 call to RoutableFragmentRenderer::checkNonScalar()
RoutableFragmentRenderer::generateFragmentUri in vendor/symfony/http-kernel/Fragment/RoutableFragmentRenderer.php
Generates a fragment URI for a given controller.

File

vendor/symfony/http-kernel/Fragment/RoutableFragmentRenderer.php, line 80

Class

RoutableFragmentRenderer
Adds the possibility to generate a fragment URI for a given Controller.

Namespace

Symfony\Component\HttpKernel\Fragment

Code

private function checkNonScalar($values) {
  foreach ($values as $key => $value) {
    if (is_array($value)) {
      $this
        ->checkNonScalar($value);
    }
    elseif (!is_scalar($value) && null !== $value) {
      throw new \LogicException(sprintf('Controller attributes cannot contain non-scalar/non-null values (value for key "%s" is not a scalar or null).', $key));
    }
  }
}