Skip to content

Commit

Permalink
Merge pull request #7818 from SenseException/simple-annotation-docs
Browse files Browse the repository at this point in the history
Add note into docs about not using SimpleAnnotationReader
  • Loading branch information
lcobucci authored Sep 18, 2019
2 parents 20ab78e + 50eecf6 commit 2489277
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/en/tutorials/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ step:
// Create a simple "default" Doctrine ORM configuration for Annotations
$isDevMode = true;
$config = Setup::createAnnotationMetadataConfiguration(array(__DIR__."/src"), $isDevMode);
$proxyDir = null;
$cache = null;
$useSimpleAnnotationReader = false;
$config = Setup::createAnnotationMetadataConfiguration(array(__DIR__."/src"), $isDevMode, $proxyDir, $cache, $useSimpleAnnotationReader);
// or if you prefer yaml or XML
//$config = Setup::createXMLMetadataConfiguration(array(__DIR__."/config/xml"), $isDevMode);
//$config = Setup::createYAMLMetadataConfiguration(array(__DIR__."/config/yaml"), $isDevMode);
Expand All @@ -156,6 +159,10 @@ step:
The YAML driver is deprecated and will be removed in version 3.0.
It is strongly recommended to switch to one of the other mappings.

.. note::
It is recommended not to use the SimpleAnnotationReader because its
usage will be removed for version 3.0.

The ``require_once`` statement sets up the class autoloading for Doctrine and
its dependencies using Composer's autoloader.

Expand Down

0 comments on commit 2489277

Please sign in to comment.