Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 61 lines (39 sloc) 2.427 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
This document details all the possible changes that you should investigate when
updating your project from Doctrine Common 2.1 to 2.2:

## Annotation Changes

- AnnotationReader::setIgnoreNotImportedAnnotations has been removed, you need to
  add ignore annotation names which are supposed to be ignored via
  AnnotationReader::addGlobalIgnoredName
  
- AnnotationReader::setAutoloadAnnotations was deprecated by the AnnotationRegistry
  in 2.1 and has been removed in 2.2

- AnnotationReader::setEnableParsePhpImports was added to ease transition to the new
  annotation mechanism in 2.1 and is removed in 2.2

- AnnotationReader::isParsePhpImportsEnabled is removed (see above)

- AnnotationReader::setDefaultAnnotationNamespace was deprecated in favor of explicit
  configuration in 2.1 and will be removed in 2.2 (for isolated projects where you
  have full-control over _all_ available annotations, we offer a dedicated reader
  class ``SimpleAnnotationReader``)

- AnnotationReader::setAnnotationCreationFunction was deprecated in 2.1 and will be
  removed in 2.2. We only offer two creation mechanisms which cannot be changed
  anymore to allow the same reader instance to work with all annotations regardless
  of which library they are coming from.
  
- AnnotationReader::setAnnotationNamespaceAlias was deprecated in 2.1 and will be
  removed in 2.2 (see setDefaultAnnotationNamespace)

- If you use a class as annotation which has not the @Annotation marker in it's
  class block, we will now throw an exception instead of silently ignoring it. You
  can however still achieve the previous behavior using the @IgnoreAnnotation, or
  AnnotationReader::addGlobalIgnoredName (the exception message will contain detailed
  instructions when you run into this problem).

## Cache Changes
  
- Renamed old AbstractCache to CacheProvider

- Dropped the support to the following functions of all cache providers:

 - CacheProvider::deleteByWildcard

 - CacheProvider::deleteByRegEx

 - CacheProvider::deleteByPrefix

 - CacheProvider::deleteBySuffix

- CacheProvider::deleteAll will not remove ALL entries, it will only mark them as invalid

- CacheProvider::flushAll will remove ALL entries, namespaced or not

- Added support to MemcachedCache

- Added support to WincacheCache

## ClassLoader Changes

- ClassLoader::fileExistsInIncludePath() no longer exists. Use the native stream_resolve_include_path() PHP function
Something went wrong with that request. Please try again.