See https://github.com/symfony/symfony/pull/22459: The `Extension::addClassesToCompile()` method has been deprecated and will be removed in 4.0.