1 This document details all the possible changes that you should investigate when
2 updating your project from Doctrine Common 2.1 to 2.2:
6 - AnnotationReader::setIgnoreNotImportedAnnotations has been removed, you need to
7 add ignore annotation names which are supposed to be ignored via
8 AnnotationReader::addGlobalIgnoredName
10 - AnnotationReader::setAutoloadAnnotations was deprecated by the AnnotationRegistry
11 in 2.1 and has been removed in 2.2
13 - AnnotationReader::setEnableParsePhpImports was added to ease transition to the new
14 annotation mechanism in 2.1 and is removed in 2.2
16 - AnnotationReader::isParsePhpImportsEnabled is removed (see above)
18 - AnnotationReader::setDefaultAnnotationNamespace was deprecated in favor of explicit
19 configuration in 2.1 and will be removed in 2.2 (for isolated projects where you
20 have full-control over _all_ available annotations, we offer a dedicated reader
21 class ``SimpleAnnotationReader``)
23 - AnnotationReader::setAnnotationCreationFunction was deprecated in 2.1 and will be
24 removed in 2.2. We only offer two creation mechanisms which cannot be changed
25 anymore to allow the same reader instance to work with all annotations regardless
26 of which library they are coming from.
28 - AnnotationReader::setAnnotationNamespaceAlias was deprecated in 2.1 and will be
29 removed in 2.2 (see setDefaultAnnotationNamespace)
31 - If you use a class as annotation which has not the @Annotation marker in it's
32 class block, we will now throw an exception instead of silently ignoring it. You
33 can however still achieve the previous behavior using the @IgnoreAnnotation, or
34 AnnotationReader::addGlobalIgnoredName (the exception message will contain detailed
35 instructions when you run into this problem).
39 - Renamed old AbstractCache to CacheProvider
41 - Dropped the support to the following functions of all cache providers:
43 - CacheProvider::deleteByWildcard
45 - CacheProvider::deleteByRegEx
47 - CacheProvider::deleteByPrefix
49 - CacheProvider::deleteBySuffix
51 - CacheProvider::deleteAll will not remove ALL entries, it will only mark them as invalid
53 - CacheProvider::flushAll will remove ALL entries, namespaced or not
55 - Added support to MemcachedCache
57 - Added support to WincacheCache
59 ## ClassLoader Changes
61 - ClassLoader::fileExistsInIncludePath() no longer exists. Use the native stream_resolve_include_path() PHP function