function CompiledUrlMatcherDumper::indent
2 calls to CompiledUrlMatcherDumper::indent()
- CompiledUrlMatcherDumper::compileStaticPrefixCollection in vendor/
symfony/ routing/ Matcher/ Dumper/ CompiledUrlMatcherDumper.php - Compiles a regexp tree of subpatterns that matches nested same-prefix routes.
- CompiledUrlMatcherDumper::generateCompiledRoutes in vendor/
symfony/ routing/ Matcher/ Dumper/ CompiledUrlMatcherDumper.php
File
-
vendor/
symfony/ routing/ Matcher/ Dumper/ CompiledUrlMatcherDumper.php, line 455
Class
- CompiledUrlMatcherDumper
- CompiledUrlMatcherDumper creates PHP arrays to be used with CompiledUrlMatcher.
Namespace
Symfony\Component\Routing\Matcher\DumperCode
private function indent(string $code, int $level = 1) : string {
return preg_replace('/^./m', str_repeat(' ', $level) . '$0', $code);
}