Skip to content

Commit

Permalink
Merge release 2.10.2 into 2.11.x (#1695)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus authored Aug 8, 2023
2 parents b5e9a1c + f28b1f7 commit bb59486
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 378 deletions.
50 changes: 26 additions & 24 deletions DependencyInjection/Compiler/DoctrineOrmMappingsPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,44 +117,46 @@ public static function createPhpMappingDriver(array $namespaces, array $managerP
}

/**
* @param string[] $namespaces List of namespaces that are handled with annotation mapping
* @param string[] $directories List of directories to look for annotated classes
* @param string[] $managerParameters List of parameters that could which object manager name
* your bundle uses. This compiler pass will automatically
* append the parameter name for the default entity manager
* to this list.
* @param string|false $enabledParameter Service container parameter that must be present to
* enable the mapping. Set to false to not do any check,
* optional.
* @param string[] $aliasMap Map of alias to namespace.
* @param string[] $namespaces List of namespaces that are handled with annotation mapping
* @param string[] $directories List of directories to look for annotated classes
* @param string[] $managerParameters List of parameters that could which object manager name
* your bundle uses. This compiler pass will automatically
* append the parameter name for the default entity manager
* to this list.
* @param string|false $enabledParameter Service container parameter that must be present to
* enable the mapping. Set to false to not do any check,
* optional.
* @param string[] $aliasMap Map of alias to namespace.
* @param bool $reportFieldsWhereDeclared Will report fields for the classes where they are declared
*
* @return self
*/
public static function createAnnotationMappingDriver(array $namespaces, array $directories, array $managerParameters = [], $enabledParameter = false, array $aliasMap = [])
public static function createAnnotationMappingDriver(array $namespaces, array $directories, array $managerParameters = [], $enabledParameter = false, array $aliasMap = [], bool $reportFieldsWhereDeclared = false)
{
$reader = new Reference('annotation_reader');
$driver = new Definition(AnnotationDriver::class, [$reader, $directories]);
$driver = new Definition(AnnotationDriver::class, [$reader, $directories, $reportFieldsWhereDeclared]);

return new DoctrineOrmMappingsPass($driver, $namespaces, $managerParameters, $enabledParameter, $aliasMap);
}

/**
* @param string[] $namespaces List of namespaces that are handled with annotation mapping
* @param string[] $directories List of directories to look for annotated classes
* @param string[] $managerParameters List of parameters that could which object manager name
* your bundle uses. This compiler pass will automatically
* append the parameter name for the default entity manager
* to this list.
* @param string|false $enabledParameter Service container parameter that must be present to
* enable the mapping. Set to false to not do any check,
* optional.
* @param string[] $aliasMap Map of alias to namespace.
* @param string[] $namespaces List of namespaces that are handled with annotation mapping
* @param string[] $directories List of directories to look for annotated classes
* @param string[] $managerParameters List of parameters that could which object manager name
* your bundle uses. This compiler pass will automatically
* append the parameter name for the default entity manager
* to this list.
* @param string|false $enabledParameter Service container parameter that must be present to
* enable the mapping. Set to false to not do any check,
* optional.
* @param string[] $aliasMap Map of alias to namespace.
* @param bool $reportFieldsWhereDeclared Will report fields for the classes where they are declared
*
* @return self
*/
public static function createAttributeMappingDriver(array $namespaces, array $directories, array $managerParameters = [], $enabledParameter = false, array $aliasMap = [])
public static function createAttributeMappingDriver(array $namespaces, array $directories, array $managerParameters = [], $enabledParameter = false, array $aliasMap = [], bool $reportFieldsWhereDeclared = false)
{
$driver = new Definition(AttributeDriver::class, [$directories]);
$driver = new Definition(AttributeDriver::class, [$directories, $reportFieldsWhereDeclared]);

return new DoctrineOrmMappingsPass($driver, $namespaces, $managerParameters, $enabledParameter, $aliasMap);
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/Fixtures/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
'secret' => 'F00',
'http_method_override' => false,
'annotations' => [
'enabled' => class_exists(Annotation::class),
'enabled' => class_exists(Annotation::class) && Kernel::VERSION_ID <= 64000,
],
]);

Expand Down
35 changes: 0 additions & 35 deletions UPGRADE-1.11.md

This file was deleted.

45 changes: 0 additions & 45 deletions UPGRADE-1.12.md

This file was deleted.

91 changes: 0 additions & 91 deletions UPGRADE-2.0.md

This file was deleted.

63 changes: 0 additions & 63 deletions UPGRADE-2.1.md

This file was deleted.

15 changes: 0 additions & 15 deletions UPGRADE-2.2.md

This file was deleted.

17 changes: 0 additions & 17 deletions UPGRADE-2.3.md

This file was deleted.

14 changes: 0 additions & 14 deletions UPGRADE-2.4.md

This file was deleted.

7 changes: 0 additions & 7 deletions UPGRADE-2.5.md

This file was deleted.

7 changes: 0 additions & 7 deletions UPGRADE-2.6.md

This file was deleted.

Loading

0 comments on commit bb59486

Please sign in to comment.