Skip to content

Commit

Permalink
[DI] fix preloading script generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Mar 17, 2020
1 parent ec1add5 commit 1ef9ab5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ValidatorBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
use Symfony\Contracts\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorTrait;

// Help opcache.preload discover always-needed symbols
class_exists(TranslatorInterface::class);
class_exists(LocaleAwareInterface::class);
class_exists(TranslatorTrait::class);

/**
* The default implementation of {@link ValidatorBuilderInterface}.
*
Expand Down

0 comments on commit 1ef9ab5

Please sign in to comment.