Skip to content

Commit f741680

Browse files
Merge branch '5.0' into 5.1
* 5.0: [SecurityBundle] Drop cache.security_expression_language definition if invalid [DI] disable preload.php on the CLI collect all transformation failures
2 parents 6b277da + e155f1c commit f741680

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dumper/PhpDumper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ class %s extends {$options['class']}
339339
340340
use Symfony\Component\DependencyInjection\Dumper\Preloader;
341341
342+
if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) {
343+
return;
344+
}
345+
342346
require $autoloadFile;
343347
require __DIR__.'/$preloadedFiles';
344348

0 commit comments

Comments
 (0)