Skip to content

Commit d4efe4a

Browse files
[DI] fix preloading script generation
1 parent 5abc0d5 commit d4efe4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ServiceLocatorTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
use Psr\Container\ContainerExceptionInterface;
1515
use Psr\Container\NotFoundExceptionInterface;
1616

17+
// Help opcache.preload discover always-needed symbols
18+
class_exists(ContainerExceptionInterface::class);
19+
class_exists(NotFoundExceptionInterface::class);
20+
1721
/**
1822
* A trait to help implement ServiceProviderInterface.
1923
*

0 commit comments

Comments
 (0)