See https://github.com/symfony/symfony/pull/21505 It invalidates the container whenever a new PHP runtime is used, a PHP-extension is added, or vendors are changed.